From e02d361ce9bb8d62098b98120d415bdbda3e8ad9 Mon Sep 17 00:00:00 2001 From: leeziwong Date: Sun, 19 May 2024 19:19:44 +0800 Subject: [PATCH] Update 2-create-query.md adding missed todos props Add todos prop in TodoPrivateList component declaration --- .../tutorial-site/content/queries/2-create-query.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/frontend/react-apollo-hooks/tutorial-site/content/queries/2-create-query.md b/tutorials/frontend/react-apollo-hooks/tutorial-site/content/queries/2-create-query.md index 18861d793..b87ca244a 100644 --- a/tutorials/frontend/react-apollo-hooks/tutorial-site/content/queries/2-create-query.md +++ b/tutorials/frontend/react-apollo-hooks/tutorial-site/content/queries/2-create-query.md @@ -101,7 +101,8 @@ Let's remove the mock `todos` data which was used to populate sample data. ```javascript -const TodoPrivateList = props => { +- const TodoPrivateList = props => { ++ const TodoPrivateList = ({ todos }) => { const [state, setState] = useState({ filter: "all", clearInProgress: false,