I want to render list from json data from url on ReactJS THis is the data on loaclhost 10.0.10.10/3000
confused to use axios or fetch
{
"users": [{
"_id": "7odGhvEvLBYtQujdZ",
"createdAt": "2019-07-23T10:48:01.438Z",
"username": "123",
"profile": {
"active": "true"
}
},
{
"_id": "dgBWJ4qBNx94MketL",
"createdAt": "2019-07-23T15:33:34.270Z",
"username": "user1",
"profile": {
"active": "true"
}
},
{
"_id": "hNTnjMEXdn5gbNSGZ",
"createdAt": "2019-07-23T16:16:56.070Z",
"username": "user2",
"profile": {
"active": "true"
}
},
{
"_id": "porAsWJ3ba48JnLPd",
"createdAt": "2019-07-23T10:21:05.541Z",
"username": "user3"
},
{
"_id": "f6NJpu8rggfGmYJEY",
"createdAt": "2019-07-30T11:47:54.652Z",
"username": "usre4",
"profile": {
"active": true
}
},
{
"_id": "anZQB6PsfuatCGxA6",
"createdAt": "2019-07-30T11:44:55.997Z",
"username": "user5",
"profile": {
"active": true
}
}
]
}
i want a simple way to dispay this data in list or table in reactJS.
using axios or fetch.