Answer the question
In order to leave comments, you need to log in
How to fetch data into a component?
Probably does not work because of asynchrony.
Answer the question
In order to leave comments, you need to log in
Nothing is returned from the fetchData function, so it's undefined there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question