From c997e62daec27169ff9da17ff70c2b693aa9ced7 Mon Sep 17 00:00:00 2001 From: Caio Abe Date: Mon, 20 Jan 2025 16:27:01 -0300 Subject: [PATCH] Updates tutorial documentation There's an example using the old `props`. This PR aims to fix that using the `useContent` approach instead. --- docs/tutorial.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 46739d60..eb916b7d 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -320,12 +320,14 @@ props_template to skip over the block. ```js import React from 'react' + import { useContent } from '@thoughtbot/superglue' - export default function GreetShow({ - body, - footer, - loadGreetPath - }) { + export default function GreetShow() { + const { + body, + footer, + loadGreetPath + } = useContent() const {greet} = body return (