In this video you'll learn how to create a sidebar inside a React application that toggles with the help of the useContext uook.
This will help you understand how to use the useContext from the React Hooks to manage and access global state inside your React applications.
Learn how to build full-stack web applications with JavaScript and React: • Build Your Own PERN Stack Todo List A...
---
useContext React Hooks - Simple Form Refactoring Tutorial: • Simplify Your React Forms with useRed...
00:00 Introduction
02:18 How does it compare to Redux?
04:01 Create Sidebar context with createContext
05:20 Add Context Provider to app parent component
06:16 Add sidebar state with toggle function
07:37 Add values to Context Provider
08:14 Access values with createContext on Sidebar Component
10:04 Access values with createContext on Toggle Component
11:32 Test sidebar toggle functionality
12:45 Conclusion
Nesta página do site você pode assistir ao vídeo on-line Build a Simple Application Sidebar: Easy useContext React Hooks Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Web Dev Fuel 03 Setembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,388 vezes e gostou 30 espectadores. Boa visualização!