This repository demonstrates how to use the useContext hook in React.js. This is achieved by creating a theme context to control whether the application is in dark mode or not.
This repository contains 2 branches. Each branch contains the following.
- Startup: Contains the code before implementing the useContext hook
- Main: Contains the finished product, which includes the implementation of the useContext hook.
This project can be ran locally. Upon forking this repository, you just need to run the following commands
npm install
npm start
A YouTube video on this topic will be placed here at a later date.