What does fetch() return?
It returns a promise
What is the default request method used by fetch()?
GET requests
How do you specify the request method (GET, POST, etc.) when calling fetch?
Put in as a second argument and specify the method name.
fetch(url, {method: ‘POST’})
GET method doesn’t need to be there. Only methods that aren’t GET should be established.
When does React call a component’s componentDidMount method?
immediately after a component is mounted
Name three React.Component lifecycle methods.
constructor() render() componentDidMount() componentDidUpdate() componentWillUnmount()
How do you pass data to a child component?
as props?