MCPcopy Index your code
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/Button.js:10–17  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

8
9class Button extends Component {
10 constructor (props) {
11 super(props);
12 this.state = {
13 disabled: props.disabled,
14 show: null
15 };
16 this.handleClick = this.handleClick.bind(this);
17 }
18
19 componentWillReceiveProps(nextProps) {
20 if (nextProps.disabled !== this.props.disabled) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected