tomivirkki / react-vaadin-components

React wrappers for Vaadin Components
https://react-vaadin-components.vercel.app/
MIT License
14 stars 6 forks source link

Use functions instead of this.state in setState() #5

Closed pekam closed 4 years ago

pekam commented 4 years ago

This is the safe way of using the current state in setState(), see: https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous

Only demos are updated, didn't check any other parts of the code.