Skip to content

Commit

Permalink
In tutorial, add missing useContent()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbleon authored and jho406 committed Jan 21, 2025
1 parent b24b225 commit 0ed782e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ Click the tabs below to see the contents:

```js
import React from 'react'
import { useContent } from '@thoughtbot/superglue';

export default function GreetShow({
body,
footer
}) {
export default function GreetShow() {
const {
body,
footer
} = useContent();

const {greet} = body

return (
Expand Down

0 comments on commit 0ed782e

Please sign in to comment.