Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Make Switch a controlled component #11

Merged
merged 7 commits into from
Nov 26, 2016
Merged

Conversation

nettofarah
Copy link
Owner

This addresses #8.

Swap `value` with `active` and simplify `onActive` and `onInactive`
functions by replacing them with a single `onChange` callback.

This makes the switch update logic a lot simpler and makes our Switch
a controlled component
@nettofarah nettofarah merged commit c9d176e into master Nov 26, 2016
@nettofarah nettofarah deleted the controlled-component branch November 26, 2016 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant