Junior — Middle+
React component for displaying a list of users
livecode
Task condition
- Fetch an array of users from the endpoint https://jsonplaceholder.typicode.com/users.
- Display their email addresses as a list (<ul>).
- When clicking on an email, open a modal window (<dialog>).
- Inside the modal window, place:
- A header with the user's full name (<header>).
- A section with detailed information (<section>).
- A close button in the footer (<footer>).
- In the main part of the modal window, display the user's data:
- username
- full address (all fields from the address object).