Skip to content

Denis793/Forms-Controlled-Uncontrolled-Components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Forms Project — Controlled & Uncontrolled Components

View Project


🖼️ Screenshot

View click

This React project demonstrates the use of both controlled and uncontrolled components to manage form inputs in a clear and practical way.

📌 Description

This React project demonstrates the use of both controlled and uncontrolled components to manage form state. Controlled components rely on React state to handle user input, offering real-time validation and centralized control. Uncontrolled components use refs to access DOM elements directly, showcasing a simpler approach when state tracking isn’t necessary. The application includes interactive forms, dynamic inputs, and validation logic. This implementation highlights best practices in handling user data and form events, making it a solid foundation for more complex UIs.

🚀 Features

  • Controlled form inputs with state handling
  • Uncontrolled inputs using useRef
  • Real-time validation (email, password, etc.)
  • Form submission handling
  • Clean and accessible UI

🛠️ Technologies

  • React (useState, useRef)
  • JavaScript (ES6+)
  • CSS Modules / SCSS (optional)
  • Vite / Create React App