www: cleanup miscellaneous doc items (#1419)
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user