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

Function getInitialState

component/DropDown.js:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 },
21
22 getInitialState() {
23 let {multi, value, options} = this.props;
24 const default_val = multi ? [] : '';
25 value = value || default_val;
26 return {
27 options, value,
28 open: false,
29 filterText: '',
30 };
31 },
32
33 getDefaultProps() {
34 return {

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…