- create
/users
endpoint - get data from https://jsonplaceholder.typicode.com/users
- format data to have object like
{
"id": 1,
"name": "Leanne Graham",
"email": "[email protected]",
"street": "street"
}
- return this data
- Get Data from created endpoint on load component
- create table like this
id | name | street | |
---|---|---|---|
1 | Dawid | [email protected] | someStreet |
2 | Ivan | [email protected] | otherStreet |
- Add table sorting by clicking on
id
orname
header.