MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Function constructor

src/Tree/Tree.js:22–32  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

20
21class Tree extends Component {
22 constructor (props) {
23 super(props);
24
25 this.state = {
26 data: [],
27 value: this.formatValue(props.value)
28 };
29
30 this.onClick = this.onClick.bind(this);
31 this.handleChange = this.handleChange.bind(this);
32 }
33
34 componentWillMount () {
35 this.formatData(this.props.data);

Callers

nothing calls this directly

Calls 1

formatValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…