Create a web app using React and React Router that displays data fetched from a public API.
- React
- React Router
- Git Conventional Commits
- Material UI
- Use
yarn
to install the dependencies listed in the package.json - Run
yarn start
to start the dev server. - Open
localhost:1234
in your web browser.
You can now start to write your web app in src/App.js
and parcel bundler will automatically reload localhost:1234
with your changes.
- Use ReactJS
- Proper structuring of components
- Create a modulure architecture by spliting the application into components
- Use props to share data between components.
- Use state to persist data in components.
- Pass only the needed data down to child components.
- Don't keep all of your application state in one "globals" top level component.
- State and props should not rerender excessively - components that are not intended to re-render should be affected by unrelated changes to the web app
- Use at least one third party component library (eg. material-ui)
- Use react-router to create multiple routes
- Create at least one static route (eg.
path="/posts"
) that lists data fetched from an API - Create at least one dynaimc route (eg.
path="/posts/:postID"
) that shows an expanded view of an item in the list route (also)
- Create at least one static route (eg.
- Upload your code to git regularly.
- Use conventional commit messages. See: https://www.conventionalcommits.org/en/v1.0.0-beta.4/
- If you only have one commit in your git repo you will not receive any points for git. Commit often
- Use functional components for all components and hooks to manage all state
- Use a third party hook
- If you are using material-ui use
makeStyles
to style your components using JS
- If you are using material-ui use