Let's discuss more about routing in Yarr.
Yarr takes an array of route objects as configuration. It offers a simple API to easily declare
- the component to preload for the route
- the data to preload for the route
Note: The preloading aspect of routing has been covered in detail here.
To check out how parameterized and nested routes work, check out this example.
- Parameterized routes can take variables in the route like so
/team/:username
and can pass down the value of the variable to the underlying components.
Checkout the example below!