From 7e934022b80910ebc214214e435b9c8471b666d0 Mon Sep 17 00:00:00 2001 From: Asaf Katz Date: Thu, 11 Mar 2021 15:46:38 +0200 Subject: [PATCH] missing children prop --- docs/guide/separating-view-logic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }