Test your knowledge

  1. Is render() a lifecycle method?
    1. Yes, render() is no different from any other lifecycle method.
    2. No, render() is simply called to get the content of the component.
  2. Which of the following is a valid use of the componentWillUnmount() method?
    1. Do delete DOM elements that were added by the component.
    2. To cancel an asynchronous action that will fail if the component us unmounted.
    3. To log that the component is about to unmount.
  3. Which lifecycle method is used by an error boundary component?
    1. componentDidCatch() 
    2. componentWillCatch()
    3. componentError()
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.84.29