How to build a ReactJS app with useContext, useReducer and react-router

preview_player
Показать описание
In this video I will build a React app using react hooks. The hooks we use will be the useContext and useReducer hook to manage our state. We will also use react-router to manage the routes in the react app.

Project Repo

===============================================
DISCLAIMER: This video and description contains affiliate links. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

This is super underrated tutorial about useContext and useReducer state management concept. Since yesterday, I am looking for a decent example that includes data fetching. All I could find is counters or some examples that contains hard coded JSON data. Thank you so much !!

EnesKab
Автор

Nice explanatory video of the usage of useReducer and Context. Better than other pseudo pro programmers on YouTube.

I can now resctruture my messy code using this with almost no effort.

Thank you for sharing!

jrs_devs
Автор

Thank you for making this video! I finally understand context/reducer after two days of trying to learn it!

TheAqui
Автор

Wow! This deserves more views than currently seen. This also cleared some of my doubts .Thanks bro

simonkalu
Автор

let me tell you bro, YOU ARE MY GODDAMN HERO!

vibelover
Автор

Best presentation on the subject I've seen - mazel tov!

LesFPinter
Автор

This was extremely helpful! Thank you so much!

natalijavelkoska
Автор

How does the React Router setup change for Version 6? I know Switch was replaced with Route and Component becomes Element but I'm still getting errors that say no Routes match the location.

NolanMakatche
Автор

Hey great video, I was wondering can you deploy an app using json-server to netlify or heroku or do u need to create a real api

razorcrudstar
Автор

Great tutorial! Any idea how to deploy it to netlify? When I do I get 404 on posts...

karelvarel
Автор

Is the code available for download? I've got a missing comma somewhere, and it's driving me nuts - admittedly a short drive...

LesFPinter