Demo: [https://drive.google.com/file/d/15N9ewcn9Y8yuWxd4GfPEX-tkWpeolfTL/view?usp=sharing]
- Install the project by running
npm install
after cloning the repository - Using a custom hook, store the input into the browser's LocalStorage upon clicking log in
- Fetch the name from LocalStorage and display on the
<Welcome />
component - Clicking log out will remove the name from LocalStorage
- Memoized the
<Quote />
component so that it doesn't re-render whenever you log in and log out
IMPORTANT: Unless you log out, closing and reopening the browser window should retain your login name (see demo)