Simple demonstration of React's new context API, where a button's theme is set based off of the user's selection. Both the style and callback function to change the style are provided via context, rather than passing through as props.
-
Notifications
You must be signed in to change notification settings - Fork 0
btaskew/react-context-buttons
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple example of React's context API at work
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published