Replies: 1 comment
-
You need to unwrap the response from function loader() {
const data = fetch(url).then(r => r.json());
return defer({
results: data,
});
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/erAnusriM/react_router_trial
The above is my github repository.
How do I achieve to print the list of users returned from the API in App.jsx file
When I print the value of result on console, it gives me a Response object.
Beta Was this translation helpful? Give feedback.
All reactions