diff --git a/docs/guide/separating-view-logic.md b/docs/guide/separating-view-logic.md index cb828ac7..685bfccb 100644 --- a/docs/guide/separating-view-logic.md +++ b/docs/guide/separating-view-logic.md @@ -14,7 +14,7 @@ const fetchPerson = async ({ id }, { signal }) => { return response.json() } -const Person = ({ id }) => { +const Person = ({ id, children }) => { const state = useAsync({ promiseFn: fetchPerson, id }) return children(state) }