reapp / reapp-ui

Amazing cross platform UI's with React and JavaScript
https://reapp.io
MIT License
257 stars 47 forks source link

Checkbox component passes false when checked for onChange handler #73

Open mailaneel opened 9 years ago

mailaneel commented 9 years ago

Using state as soon as it is set will not reflect new state

https://github.com/reapp/reapp-ui/blob/master/src/components/Checkbox.jsx#L30

jhopper28 commented 9 years ago

@mailaneel Feel free to fork, fix and create a pull request if you have a moment. If not, no worries, we'll get to it as soon as possible.

ryd0rz commented 8 years ago

@mailaneel - I don't see how we are using the state as soon as it is set. Perhaps you have found an issue, but can you show me where we are using (your code example is showing where it is set...)