Answer the question
In order to leave comments, you need to log in
How to render data from another file?
Good day. I have a file with code
const data = fetch('https://jsonplaceholder.typicode.com/posts')
.then(response => response.body)
.catch(error => console.log(error));
export default data;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question