amclin / react-project-boilerplate

Boilerplate React project incorporating NextJS, CICD pipelines, unit testing, quality gates, and code styling. It is useful for ensuring consistent working environments across multiple different applications.
Other
10 stars 7 forks source link

Example of using Context in a NextJS app #5

Open amclin opened 5 years ago

amclin commented 5 years ago

Add a pages/_app.js file that sets up a basic context example.

https://nextjs.org/docs#custom-app

amclin commented 4 years ago

Example should explain and discourage using Context in the first place

https://www.youtube.com/watch?v=3XaXKiXtNjw https://reactjs.org/docs/context.html#before-you-use-context https://reactjs.org/docs/composition-vs-inheritance.html