To use useContext, useState, useRef, routers, create a simple menu with only login button and much more To use below react features and common fetaures as part of this project:
- useContext
- useState
- useRef
- forwardRef
- routers - must be able to navigate programatically as well as through Link
- create a simple menu with login button and project name (Basic UI, not high deisgn required)
Project decsription: User must be able to navigate to login page, and enter credentials. Credentials can be hardcoded as admin/admin in controller file. No API call required in project Upon successful login, user must be able to move to dashboard and see contents. Logout button should be available at top right. On clicking logout state must be reset
Code contains:
- Router logics
- Login / Logout
- React Hooks (useRef, useState, useContext, createContext, useEffect)
- Thrid part API call for login using axios.
- useReducer not included
- In useEffect did not cleanup the code after component is navigated away which should be done