Hi Emily, and everyone else! Sorry I missed these questions, as the reason behind my suggested fix above caused some confusion.
The slides say you must call the fetch function after
render, because the fetch function calls
setState. It doesn't matter, though, where you declare
That could be before or after the declaration for
render, but the only place in this challenge to declare it correctly is around line 36. The other options are wrong because you'd be declaring it in a constructor, or
_fetchComments itself (which'd be !) , which'd hide
componentWillMount from any external code that wanted to call it.
The order of the calls is guaranteed as per the React life cycle. Check out the slides, and note that
componentWillMount is called before
Let us know if you have any other questions!