Skip to content

btaskew/react-context-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple example of React's context API at work

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published