- Is render() a lifecycle method?
- Yes, render() is no different from any other lifecycle method.
- No, render() is simply called to get the content of the component.
- Which of the following is a valid use of the componentWillUnmount() method?
- Do delete DOM elements that were added by the component.
- To cancel an asynchronous action that will fail if the component us unmounted.
- To log that the component is about to unmount.
- Which lifecycle method is used by an error boundary component?
- componentDidCatch()
- componentWillCatch()
- componentError()
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.