Using Context Variables

Learn to use context variables in our Transcrypt application.

About the application

In this application, we’ll look at some modifications on our landing page view and menu. Our application will not have to pass isLoggedIn and logout as props. Using useContext() hook function, we can get the actual values from the component, which in our case is a dictionary containing the login functionality.

This is what the application looks like:

Note: To log in, use the username admin and password 123.

Get hands-on with 1200+ tech skills courses.