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

Method constructor

src/Rating.js:16–24  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

14
15class Rating extends Component {
16 constructor (props) {
17 super(props);
18 this.state = {
19 value: props.value,
20 hover: 0,
21 wink: false
22 };
23 this.handleLeave = this.handleLeave.bind(this);
24 }
25
26 componentWillReceiveProps (nextProps) {
27 if (nextProps.value !== this.props.value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected