This project is a React-based web application that allows users to input their personal information (Name, City, Country) and generate a QR code based on the provided data. The application uses Material-UI for styling and components, including text fields and buttons, along with react-hook-form for form handling. Additionally, the QR code is generated using the react-qr-code
library.
- Form Input: Users can enter their Name, City, and Country into text fields.
- QR Code Generation: Upon submitting the form, a QR code is generated based on the entered data.
- Form and QR Code State Management:
- Once the QR code is generated, the form fields and submit button are disabled to prevent further edits.
- An "Edit" button is provided to re-enable the form fields, allowing users to update their information. When editing, the QR code is hidden.
- Styled Components: Utilizes Material-UI's styled components for a consistent and modern look and feel.
- React: For building the user interface and managing state.
- Material-UI: For UI components and styling.
- react-qr-code: For generating QR codes from user input.
- User Input: The user enters their Name, City, and Country into the respective text fields.
- Form Submission: When the user submits the form, the entered data is used to generate a QR code.
- State Management: The form fields and submit button are disabled after the QR code is generated to prevent further edits. The QR code is displayed to the user.
- Editing: The user can click the "Edit" button to enable the form fields again and hide the QR code, allowing them to update their information and generate a new QR code.
This project demonstrates the integration of various modern web development technologies to create an interactive and user-friendly application.