Skip to content

[DEPRECATED] Make Toggle stateless

Compare
Choose a tag to compare
@ganlhi ganlhi released this 04 Jan 09:19
· 47 commits to master since this release

THIS VERSION IS DEPRECATED

This releases changes the Toggle component so it is stateless. This allows to control its state from outside, by updating the checked prop; which was not possible before.

This implies the caller has the responsibility to hold the state.