React Context API Practical Example Tutorial - Among Us Clone Devlog [From Scratch] Ep.3

preview_player
Показать описание
This tutorial covers State Management using the #React Context API through a practical example of building a web game (#AmongUs) using #NextJS. The React Context API was introduced as an alternative to third-party solutions for state management of a React app like Redux, for example.

We go over the basics and how you can type your contexts correctly if using TypesScript. In this case, we were able to exchange information between two distinct pages, sharing a player name that was collected through a custom made input on a custom-built modal styled with TailwindCSS.

Follow the series for more React goodies!

Chapters
0:00 - Intro
0:42 - Quick Recap
1:13 - Creating a Context
3:08 - Modal with TailwindCSS
8:00 - Using an Input in React
9:50 - Updating the Context
10:27 - Typing your Context
11:18 - The Results
11:34 - Outro

-----------------------------------------------------------------------------------------------------------------

- IF you like this video, please make sure to click the like button and share this with all your friends! 👍

- ANY comments or ideas? Share them with me down below! ✍

SIGNUP FOR THE NEWSLETTER

JOIN OUR NEWLY CREATED DISCORD CHANNEL

MY SOCIAL MEDIA

MY FILMING GEAR:

MY CODING GEAR:

COMPUTER SPECS:
(MacBook Pro 16'' 2019)
Intel i9 2,3 GHz 8-Core
16 GB 2667 MHz DDR4
Intel UHD Graphics 630 1536 MB

(Custom Built PC 2017)
Рекомендации по теме
Комментарии
Автор

React Context API is an amazing tool to manage your application's state!
Have you tried it before, or any other third-party solution, like Redux?
Let me know below 👇👇

IgorSilveira
Автор

Awesome work. I am sure this helps a lot of developers.

natterstefan
Автор

How did you capitalise the set part of useState automatically. I normally ctrl+d twice then go back to second parameter to capitalise the word after set.

Like [name, set Name] =usestate

abdullahhassan
join shbcf.ru