A collection of small React projects built with React 19 and Vite, created while learning core React concepts: components, props, state, lists, and forms.
| Project | Description | Concepts Practiced |
|---|---|---|
static_card |
"ReactFacts" – a static page with fun facts about React | JSX, Fragments, importing assets, basic styling |
travel_card |
"My Travel Journal" – a list of travel entry cards rendered from data | Components, props, map(), spread operator, optional chaining |
dynamic_page |
"Chef Claude" – add ingredients to a list and get ready for a recipe | useState, form actions, conditional rendering, lists |
- Node.js v18 or higher
- npm (comes with Node.js)
git clone https://github.com/anushkaasarraf/react-projects.git
cd react-projectsEach project is independent and has its own dependencies. Replace <project> with static_card, travel_card, or dynamic_page.
cd <project>
npm install
npm run devThen open the local URL shown in the terminal (usually http://localhost:5173).
| Command | Description |
|---|---|
npm run dev |
Start the development server |
npm run build |
Create a production build |
npm run preview |
Preview the production build locally |
npm run lint |
Run ESLint |
.
├── static_card/
│ ├── public/
│ ├── src/
│ │ ├── assets/
│ │ ├── static.css
│ │ └── static.jsx
│ ├── index.html
│ └── package.json
├── travel_card/
│ ├── src/
│ │ ├── assets/
│ │ ├── components/
│ │ │ ├── entry.jsx
│ │ │ └── header.jsx
│ │ ├── data.js
│ │ ├── index.css
│ │ └── main.jsx
│ ├── index.html
│ └── package.json
├── dynamic_page/
│ ├── src/
│ │ ├── assets/
│ │ ├── components/
│ │ │ ├── Header.jsx
│ │ │ └── Main.jsx
│ │ ├── index.css
│ │ └── main.jsx
│ ├── index.html
│ └── package.json
└── README.md
- Connect "Chef Claude" to an AI API to generate real recipes
- Add remove/clear options for ingredients
- Deploy projects with GitHub Pages or Vercel
This is a personal learning repository, but suggestions are welcome. Feel free to open an issue or submit a pull request.
This project is open source and available under the MIT License.