What does fetch() return?
A Promise that resolves to a Response object
What is the default request method used by fetch()?
GET
How do you specify the request method (GET, POST, etc.) when calling fetch?
fetch(‘url’, {
method: ‘POST’
}
When does React call a component’s componentDidMount method?
immediately after a component is inserted into the DOM tree, once after a successful render
Name three React.Component lifecycle methods.
componentDidMount(), componentDidUpdate(), componentWillUnmount(), render, constructor
How do you pass data to a child component?
prop={this.state.data}