Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Reference Guide: The General Guide to Building a React App #100

Open
gstark opened this issue Oct 19, 2020 · 0 comments
Open

Quick Reference Guide: The General Guide to Building a React App #100

gstark opened this issue Oct 19, 2020 · 0 comments
Labels
good first issue Quick Reference Guide Relates to the misc/quick-reference-guides section of the handbook

Comments

@gstark
Copy link
Contributor

gstark commented Oct 19, 2020

Describe:

  • Hard code the UI including duplication of data

  • Extract one hard coded example to a component

  • Replace the use of that component with driving from props

  • Use static data in a JSON file or variable by copying from the API

  • Turn this into a map of data using our component

  • Remove the JSON file/variable and use state with an empty data set (empty array or object, etc.)

  • Render from state instead of the JSON file/varaible

  • Use fetch/axios to load data and set state.

  • See that the app renders from the data from the API

  • Creating a form to edit data

  • Track the form's data in state

  • form submit action

  • Use fetch/axios to send data to api

  • Using React Router to render different pages

  • Using useParams to get routing params

  • Using useHistory to force navigation

@gstark gstark added Quick Reference Guide Relates to the misc/quick-reference-guides section of the handbook good first issue labels Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Quick Reference Guide Relates to the misc/quick-reference-guides section of the handbook
Projects
None yet
Development

No branches or pull requests

1 participant