EXERCISE - User Profile Web App
Categories:
react
Work towards building something that functions like this.
Start from this code.
Hints:
- For now, don’t worry about styling. You can do this at the end.
- Used controlled components for the various user inputs, i.e. store their values in state.
Steps:
- Display the first name of 50 users.
- Display their first name and two letter nationality code.
- Display their first name, two letter nationality code and profile image.
- Add the gender filter dropdown menu. Use
console.log()
to ensure you can handle selection ofall
,male
andfemale
. - Modify your render code to only render users who’s gender matches that selected (stored in state).
- Repeat 5. and 6. for nationality
- Add the sort by name radio buttons. Use
console.log()
to ensure you can handle selection ofyes
andno
. - Modify your render code to sort the users before you display them, when
yes
is selected (stored in state). - Add the search by name text input. Use
console.log()
to ensure you can handle changes to this text field and log what is typed. - Modify your render code to only display users who’s name starts with the text that has been typed in (stored in state).