A simple login form built using React and JSX, featuring field validation, error messaging, disabled button states, and persistent data storage via localStorage.
- π All input fields are validated
- β Displays error messages under each invalid input
- π Submit button is disabled until all fields are valid
- πΎ localStorage is used to persist user input even on refresh
- π Data is stored in a JSON file for easy access(then will be hashed)
- π§ͺ Validation Logic
- Email: Must be a valid email format
- Password: Minimum 6 characters
- Fields show errors after blur or invalid submission
- Form can't be submitted until all fields are valid
- React.js
- Node.js
- CSS for styling
- JSON for DB
- Vite for development server
- npm for package management
backend/
βββ server.js
|ββ data
| βββ users.json
src/
|ββ assets/
βββ components/
β βββ LoginForm.jsx
β βββ SignUp.jsx
β βββ DeleteAccount.jsx
β βββ ValidationMessage.jsx
β βββ SuccesfullLogin.jsx
β βββ SuccesfullSignUp.jsx
β βββ SuccesfullLogout.jsx
βββ App.jsx
βββ main.jsx
βββ index.css
βββ index.html
βββ vite.config.js
βββ package.json
βββ package-lock.json
βββ README.md
- git clone https://github.com/OV111/Login_Form_JSX.git
- cd login-form-react
- npm install
- npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.


