Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Mar 6, 2024
1 parent 5311b2e commit 03a16fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions site/pages/concepts/state-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ app.frame('/', (c) => {
/** @jsxImportSource frog/jsx */
import { Button, Frog } from 'frog'

type State = { // [!code focus]
count: number // [!code focus]
} // [!code focus]
type State = {
count: number
}

export const app = new Frog<{ State: State }>({ // [!code focus]
initialState: { // [!code focus]
count: 0 // [!code focus]
} // [!code focus]
}) // [!code focus]
export const app = new Frog<{ State: State }>({
initialState: {
count: 0
}
})

// ---cut---
app.frame('/', (c) => {
Expand Down

0 comments on commit 03a16fb

Please sign in to comment.