feat: pass middleware state in props (#1264)

This commit is contained in:
Reed von Redwitz
2023-06-28 14:53:42 +02:00
committed by GitHub
parent 851f8d60aa
commit 0db3a0911a
12 changed files with 105 additions and 20 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ Route files that render HTML are JavaScript or TypeScript modules that export a
JSX component as their default export. This component will be rendered for every
request to the route's path. The component receives a few properties that can be
used to customize the rendered output, such as the current route, the url of the
request, and handler data (more on that later).
request, state set by middleware, and handler data (more on the last two later).
In the demo project we'll create a route to handle the `/about` page. To do
this, one needs to create a new `routes/about.tsx` file. In this file, we can