Build a small web app using React (JavaScript) and Vite to understand form handling, password security (hashing), data management using JSON, and basic authentication with token-based login.
localStorage
or sessionStorage
(used to manage login state; developer should understand the pros and cons of both)This is only suggestion you can use your own structure
/src
/pages
register.jsx
login.jsx
users.jsx
profile.jsx
/components
InputField.jsx
UserCard.jsx
/utils
hash.js // hash + compare logic
auth.js // token functions
/register
– Register Page