/react-dark-mode

This repository shows you how to create an app with a dark mode theme using React's useContext hook

Primary LanguageJavaScript

React Dark Mode

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.

Breakdown

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.

Development server

This project can be ran locally. Upon forking this repository, you just need to run the following commands

  • npm install
  • npm start

Watch on YouTube

A YouTube video on this topic will be placed here at a later date.