mu29 / react-radio-buttons

Well-designed radio buttons for react
MIT License
74 stars 26 forks source link

Added componentWillReceiveProps to handle late arriving value #16

Closed mikkelking closed 7 years ago

mikkelking commented 7 years ago

The previous version determined the state in the component constructor. This works as long as the value is provided on the first render. React often renders with missing props initially, so this is a way to make sure a proper render is completed when props arrive a moment later.

mu29 commented 7 years ago

Thanks a lot :) Sorry for late check