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

Method constructor

src/Input.js:14–21  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

12
13class Input extends Component {
14 constructor (props) {
15 super(props);
16 this.state = {
17 value: props.value
18 };
19 this.handleChange = this.handleChange.bind(this);
20 this.handleTrigger = this.handleTrigger.bind(this);
21 }
22
23 componentWillReceiveProps (nextProps) {
24 let value = nextProps.value;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected