- Render out hard-coded data
- Model your data (similar to the process in Rails)
- Add state to your app
- Make render use app’s state (remove hard-coding from render)
- Handle events from interactive elements (
onClick,onChange) - Connect those to methods that update the app’s state (
this.setState)
- first name
- last name
- profile image
- Add editable last name field
- Add editable image URL field
- Make two
ShowProfileandEditProfilecomponents that renders the showing of the user’s info, and renders the fields for editing their info - Add toggle button to switch between either profile viewing and editing
- (Advanced) Add a 'Random' button that uses
fetchoraxiosto load random user information fromhttps://randomuser.me/api/ - (Advanced) Add prettier to automatically format code:
- Add a
yarn formatscript to run prettier on all code in the./srcdirectory - Add a prettier pre-commit hook
- Add a
This project was bootstrapped with Create React App.
Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.