This repo is further experimentation & practice of advanced React design patterns, inspired by the React: Design Patterns course on LinkedIn Learning.
- Clone this repo to your local machine
- Run
npm install
- Run
nvm use 16
to change Node versions (you'll get errors if you try to run on Node 18) - Run
node server.js
to use theserver.js
file as the database (many of the component branches use server.js) - Run
npm run start
- Visit localhost:3000 to view site
- To change branches, run
git checkout <branch-name>
The branches are structured to correspond to the 6 main concepts in the course. Feel free to look around!
cmp--layouts
cmp--containers
cmp--controlled-vs-uncontrolled
cmp--higher-order-components
cmp--custom-hooks
cmp--functional-design-patterns
You'll also find additional README's in each branch, with extra explanations and my takeaways on the components.