Example how can we use hook useContext in our react project.
These instructions should get you a copy of the project up and running on your local machine for development and testing purposes.
Things you need to get started:
- A recent version of Node running on your machine (8.0 or higher), check this link to download it.
- A cool text editor, I recommend using either VSCode or Atom(with the nuclide plugin)
To get the project running, follow these steps:
- Create a folder -Enter/Navigate into that folder
cd <folder-name>
- Clone this repository:
git clone https://github.com/adrian1088/example-useContext.git .
- Install all the project's dependencies:
yarn or npm install
- Once that's done, run the project:
npm run dev or yarn run dev
- Javascript
- React js
- vite
José Maldonado Pozo