Skip to content

Commit 96bbcb0

Browse files
authored
Update README.md
1 parent 10db5ab commit 96bbcb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,12 @@ yarn start
7070
Pass the dependencies (`toggleMenu` in this case) via props.
7171
Make sure everything works by clicking on the "Training" button at the top right of the screen. Hint, you can look at the `src/components/Header.js` as an example (heads up, use curly brackets to pass a prop as a function)
7272

73-
- [ ] 3. Refactor the books section by creating a function component called Books. Pass the state from App to Books via via props.
74-
Make sure everything works.
73+
- [ ] 3. Refactor the books section in App.js by creating a new function component called Books. The `<Books>` component will have the JSX related to books. This task is a stepping stone, keep all the state in `<App>` and pass any needed state from `<App>` to `<Books>` via props. You'll refactor and improve this code again in the next task. Make sure everything works.
7574

76-
- [ ] 4. Is there any state in app that should be in the Books component?
75+
- [ ] 4. Is there any state in App.js that should be in the `<Books>` component?
7776
Refactor `<Books>` if appropriate.
7877

79-
- [ ] 5. Break `<Books>` down into `<BookList>` and `<BookFilter>`
78+
- [ ] 5. Break `<Books>` down into two smaller components: `<BookList>` and `<BookFilter>`. `<BookList>` will be responsible for displaying the books. `<BookFilter>` will be responsible for filterind the books. Is there any state in `<Books>` that should be moved into `<BookList>` or `<BookFilter>`?
8079

8180
## 🏋️‍♀️ Bonus exercise
8281

0 commit comments

Comments
 (0)