Skip to content

Commit

Permalink
Update _kbarticlespages/single-page-application.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Aas <[email protected]>
  • Loading branch information
Ephraim-G and svenaas authored Nov 2, 2023
1 parent 2e060f4 commit dfdce8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _kbarticlespages/single-page-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In this example we will be taking a look at a simple single-page application whi

#### Application Routing

Static site generators like Jekyll and Hugo handle routing by creating an HTML file at each path that can be requested by the user. For single-page applications, we will only render one HTML file: index.html, which loads the Javascript necessary for running our application and router.
Static site generators like Jekyll and Hugo handle routing by creating an HTML file at each path that can be requested by the user. For single-page applications, we will only render one HTML file: index.html, which loads the JavaScript necessary for running our application and router.

All of the routing is located in the `index.js` file. Here we import all our components, css and functions. We create the `<BrowserRouter>` and use the `<RouterProvider>` to provide that router to our application. The parent route registers a `Layout` component which essentially wraps all the other page components thus providing a uniform structure/design for all the components.

Expand Down

0 comments on commit dfdce8b

Please sign in to comment.