Reactjs – How can i use fetch() in proper way to get data from web api?
I want to set stock data in stockData and print it in console when I submit form. but when I submit form, I got only undefined. I think it's because it takes time fetch data from api(not sure). How can…