garretttaco / just-useContext

React.useContext(ForAllYourStateNeeds)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just useContext for React state management

This is the repo for a mini presentation at Phoenix React JS. The purpose of this presentation is to show off the ease of use for context and useContext in React. How it can help to avoid prop drilling and even reaching for something like Redux, when you might not need to.

This is repo is purely meant for educational and thought invoking purposes only.

Getting started

  1. Clone the repo.
$ git clone git@github.com:garretttaco/just-useContext.git
  1. Set the Node version.
$ nvm use
  1. Install the dependancies.
$ npm i
  1. Run the app
$ npm start

About

React.useContext(ForAllYourStateNeeds)


Languages

Language:JavaScript 86.4%Language:HTML 13.6%