This is a React project to implement a feedback form based on a provided Figma design. The form allows users to input their name, contact number, email, and feedback using an emoji-based slider and comment section. Submitted feedback is displayed dynamically without page refresh using local state.
(https://react-feedback-form-drab.vercel.app/)
To run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git
Navigate to the project directory:
cd your-repo-name
Install the required dependencies:
npm install
Start the development server:
npm run dev
Open your browser and go to:
http://localhost:5173/
The following validations are enforced:
The slider uses a range between 0 and 100 to represent the user's feedback, divided into the following categories:
Slider Value | Emoji | Description |
---|---|---|
0 - 20 | š (Worst) | Worst |
21 - 40 | š (Not Good) | Not Good |
41 - 60 | š (Fine) | Fine |
61 - 80 | š (Look Good) | Look Good |
81 - 100 | š (Very Good) | Very Good |
āāā public/
āāā src/
ā āāā components/
ā ā āāā InputField.jsx
ā ā āāā Slider.jsx
ā ā āāā UserComment.jsx
ā āāā App.jsx
ā āāā Component.jsx
ā āāā main.jsx
ā āāā styles/
ā āāā slider.css
ā āāā component.css
āāā index.html
āāā package.json
āāā tailwind.config.js
āāā vite.config.js
npm run dev
: Starts the development server.npm run build
: Builds the app for production.npm run preview
: Previews the production build.npm run lint
: Runs ESLint to check for code style issues.This project is licensed under the MIT License.