This project is built using React (Vite) and Tailwind CSS.
In React, it utilizes the useState()
hook to manage the state of the text input field, background color of the QR code, the src
of the image in the image tag, and the character warning that appears when the user enters the #
or &
characters. It also uses the useEffect()
hook, which runs whenever its dependencies change.
- Install VSCode: Download and install VSCode if you haven't already.
- Install Node.js: Download and install Node.js (which includes npm).
- Clone or Download the Repository:
- Clone the repository using Git:
git clone <repository-url>
, or - Download the ZIP file from the green "Code" button on the repository page.
- Clone the repository using Git:
- Open the Project:
- Open VSCode and navigate to the folder containing the project files.
- Install Dependencies:
- Open the terminal in VSCode using
Ctrl + `
(orCmd + `
on Mac), and run the commandnpm install
(ornpm i
) to install the required packages.
- Open the terminal in VSCode using
- Run the Project:
- After installation, run
npm run dev
in the terminal. This will start the development server and provide a URL (usuallyhttp://localhost:5173
).
- After installation, run
- View the Project:
- Open your browser and navigate to the provided URL to see the project in action.