MCPcopy Index your code
hub / github.com/flyfloor/react-component / componentDidMount

Function componentDidMount

component/DropDown.js:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 },
42
43 componentDidMount() {
44 const {multi, defaultSelected, valueName} = this.props;
45 const {options, value} = this.state;
46 if (!multi && !value && defaultSelected && options.length > 0) {
47 this.setState({
48 value: options[0][valueName]
49 });
50 }
51 },
52
53 formatValue(val, callback){
54 let newVal = val, oldVal = this.state.value;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…