- Node
- Text Editor (Visual Studio recommended)
Or use the online IDE and skip to the workshop
Clone the project
Run yarn install
or npm install
Run yarn start
or npm start
Then open http://localhost:3000 to see your app.
-
Add the
RecipeCard
component to the app- Import the
RecipeCard
component - Add the
RecipeCard
component
- Import the
-
Add the name of your favourite recipe and an image to the
RecipeCard
component💡 You can use the image we imported for you called placeholderImage
-
Use real recipe data
- Add the recipe’s title
- Replace the placeholder image with the recipe’s image
💡 Have a look at recipes.json file to see what data we have
💡 Remember how the Button component got to know its name
-
Make it BEAUTIFUL ✨
- Beautify recipeContainer
- Beautify recipeCard
- Beautify the image
💡 Use the styles we imported for you
Hurray! You're done! 👏
-
Display a single recipe when clicking on a recipe 1. Create your own component called RecipeDetailsCard 1. Display the title
- Display the image
- Display the recipe
💡 Remember what we learned about the state
- style
- map function
- {} → curly braces
- <> → JSX
- passing functions
- state
- json files
This project was bootstrapped with Create React App.