Let's test our knowledge on React Router with the following questions:
- We have the following Route component that shows a list of customers:
<Route path="/customers" component={CustomersPage} />
Will the CustomersPage component render when the page is "/customers"?
- Will the CustomersPage component render when the page is "/customers/24322"?
- We only want the CustomersPage component to render when the path is "/customers". How can we change the attributes on Route to achieve this?
- What would be the Route component that could handle the "/customers/24322" path be? It should put "24322" in a route parameter called customerId.
- How can we catch paths that don't exist so that we can inform the user?
- How would we implement a search query parameter in CustomersPage? So, "/customers/?search=Cool...