This repo is a walkthrough of the two most commonly used React hooks: useEffect and useState. We're going to be making a very basic front-end only todo app. If you are interested in building a version of this app with a backend, I have another repo that you can use as a reference here.
In lecture-notes.md, you will be able to go through the lesson with concepts from this workshop. I'll update it after the workshop concludes to include anything else that might have been discussed that I didn't pre-document.
The folder called start-here contains what is needed to code-along during this interactive lesson. The final-project folder holds a completed version of the project that you can use as a reference point if needed.
Below are the steps you will need to get started. After that we'll be working together in the workshop.
This project runs on node. Since everyone's setup is different I will refer you to the official node documentation for notes on getting setup with node.
Although the project is no longer being maintained in favour for things like Next.js, I wanted to lead this workshop with technology that I am the most familiar with, as my day job right now is 99% backend PHP and I have had limited experience with Next.js.
I use yarn as my package manager, but npm will do the same thing. Just note that there are some syntax differences. Fortunately apart from the initial setup of this project there is nothing extra to install.
-
Fork this whole repo using the
forkbutton in the top right hand side of the repo. -
Once you have your own fork of this project, you are going to clone it so you can work on it locally.
- Click on
Code - Select
SSH - Click
Copy to Clipboard
- Click on
-
Open up a terminal on your computer and navigate to the parent folder that you would like this project to live in.
-
Paste the SSH key into your terminal like this:
git clone <pasted key>then hit enter -
Navigate into the
start-herefolder by usingcd start-here -
Install packages by using either
npm ioryarn, depending on which package manager you prefer.
Now it is time to follow along and ask questions along the way!