www: cleanup miscellaneous doc items (#1419)

This commit is contained in:
Reed von Redwitz
2023-07-07 16:07:40 +02:00
committed by GitHub
parent 7aad800ced
commit f737e1c4e3
14 changed files with 449 additions and 39 deletions
+2 -4
View File
@@ -9,16 +9,14 @@ wrapper is allowed per application.
The component to be wrapped is received via props, in addition to a few other
things. This allows for the introduction of a global container functioning as a
template which can be conditioned based on state and params. Note that any state
set by middleware is available via `props.state`.
template which can be conditioned based on state and params.
```tsx
// routes/_app.tsx
import { AppProps } from "$fresh/server.ts";
export default function App({ Component, state }: AppProps) {
//do something with state here
export default function App({ Component }: AppProps) {
return (
<div class="wrapper">
<Component />