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

Method constructor

src/Icon.js:8–13  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6
7class Icon extends Component {
8 constructor (props) {
9 super(props);
10 this.state = {
11 spin: props.spin
12 };
13 }
14
15 componentWillReceiveProps (nextProps) {
16 this.setState({ spin: nextProps.spin });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected