Test your knowledge

  1. Can you use all of the standard HTML tags as JSX elements?
    1. Yes, but you have to import any HTML tags that you want to use from react-dom
    2. No, you have to implement your own React components that render HTML content
    3. Yes, React supports this out of the box
  2. How do you access child elements from your component?
    1. Child JSX elements are always accessible via the children property
    2. Child JSX elements are passed as arguments to the render() method
    3. There is no way to access child elements from within a component
  1. What does the Fragment component from React do?
    1. It renders its children more efficiently
    2. It creates a reusable piece of markup that can then be reused throughout the app
    3. It acts as a container component by negating the need to render pointless elements, such as container divs
..................Content has been hidden....................

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