This workspace contains several small React learning projects built with Vite.
01_first-react-app— starter React app setup with Vite02_react-component— practice building reusable components03_react-props— props drilling and data passing between components04_react-mini-project— mini project showcasing reusable card components05_css_in_react— component styling using CSS Modules06_project-using-tailwindcss— Tailwind CSS integration examples07_functions-in-react— practicing functions and handlers in components08_react-useState— state management withuseState09_form-handling— form input handling and submission examples10_two-way-binding— two-way data binding with React inputs11_notes-app— notes app example with add/remove functionality12_react-useEffect— effect hooks and side-effect handling withuseEffect13_gallery-app— image gallery UI with filtering and layout examples14_react-routing— routing and navigation using React Router DOM15_portfolio-project— portfolio website project16_advance-routing— advanced routing concepts and patterns17_child-to-parent— child-to-parent data communication example18_context-api— context API state sharing example
- Open the subfolder for the project you want to run (for example,
01_first-react-app). - From that project folder install dependencies:
npm install- Start the development server from the same folder:
npm run dev- Open the local URL shown in the terminal (usually
http://localhost:5173).
Tips:
- If you use an editor terminal, change directory to the project first, e.g.
cd 02_react-component. - Use a recent Node.js LTS (16+ or 18+). If you have multiple Node versions, use
nvm/nvm-windowsto switch. - If a project uses Tailwind, run the normal
npm run devafter installing — the config is included.
- Each subfolder is a separate Vite project with its own
package.json. - Always run
npm installinside the project folder beforenpm run dev. - If ports conflict, stop other dev servers or set a different port via Vite config or
--port.
- Open project folder
- Run
npm install - Run
npm run dev - Open the URL shown in the terminal