React and Axios fires twice (once undefined, once successfully)
问题 Following the React AJAX example i have created a JSX file which purpose is to fetch and render a movie. For all i know, i am doing everything right here. When i console.log the data in my render function i get 2 results: Undefined Object (which is the one i need, so this one is perfect) How can i filter out the Undefined row without doing some if/else logic in my render function? Iterating over the result will, of course, result in an error the first time, which will crash my application.