Chapter 9

  1. The react-router package is the official package used for routing in React apps and therefore, the only option.
    1. No, react-router is the de facto routing solution for React and you should use it unless you have a strong reason not to.
  2. What's the difference between Route and Router components?
    1. A Route is used to render components based on URL matches and a Router is used to declare route-component mappings.
  3. How do you change only certain parts of the UI as the route changes?
    1. You use Route components to render content that is specific to any given section, based on the provided path property. You can have more than one Route with the same path value.
  4. When should you use the NavLink component?
    1. When you want to use the activeStyle ...
..................Content has been hidden....................

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