MCPcopy Index your code
hub / github.com/react/react / changeState

Method changeState

packages/react/src/__tests__/ReactES6Class-test.js:125–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 this.state = {bar: props.initialValue};
124 }
125 changeState() {
126 this.setState({bar: 'bar'});
127 }
128 render() {
129 if (this.state.bar === 'foo') {
130 return <div className="foo" />;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected