Routing
In this section, we'll add routing to our Sonnet JS application. Routing allows us to create a multi-page application with different views.
Creating a New Routing Project
To get started with routing in Sonnet JS, it's best to create a new project using the Router template:
- Open your terminal and run the following command:
npx create-sonnet-project
- When prompted, choose the following options:
Sonnet JS: A frontend framework