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,