fetch Flashcards
What does fetch() return? .catch(err+> console.error( )) and in the return expression
returns a promise that resolves with 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?
method argument.
How do you specify the request method (GET, POST, etc.) when calling fetch?
method argument.
When does React call a component’s componentDidMount method?
componentDidMount() is invoked immediately after a component is mounted (inserted into the tree).
after the first successful render.
How do you pass data to a child component?
props
Name three React.Component lifecycle methods.
render
componentdidmount
constructor