$ npm install
$ npm run dev
Project is running at http://localhost:8090/
/
should return three random recipe cards- the cards should show:
- recipe name
- preparation time
- cooking time
- tags
- clicking a card should take you to
/recipe/__id__
- the cards should show:
/recipe/__id__
should show you detail about the recipe- recipe name
- preparation time
- cooking time
- tags
- Use react-router for routing
- Use
React.FunctionComponent
for all components, withReact.useEffect
andReact.useState
- Use Material UI - no custom CSS
- Use the repositories context for all data:
const { recipeRepository } = React.useContext(RepositoriesContext);