Skip to content

Commit 2297dd8

Browse files
authored
Update README.md
1 parent b5e78f0 commit 2297dd8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ You need to have `node`and `npm`installed in your computer.
1212

1313
## Exercise
1414

15+
Before you start, there are two types of components [Functional Components and Class Comonents](https://reactjs.org/docs/components-and-props.html#functional-and-class-components). Use a Functional component if your component doesn't have state.
16+
17+
### Tasks
18+
1519
1- Refactor the “about” and “footer” sections by creating a stateless component for each. Make sure everything works.
1620

1721

@@ -21,10 +25,10 @@ You need to have `node`and `npm`installed in your computer.
2125
3- Refactor the books section by creating a stateless component and pass the dependencies via props. Make sure everything works.
2226

2327

24-
4- Is there any state in app that should be in the Books component? Refactor <Books> books if appropriate. Should <Books> be a stateless component or a class now?
28+
4- Is there any state in app that should be in the Books component? Refactor &lt;Books&gt; books if appropriate. Should &lt;Books&gt; be a stateless component or a class now?
2529

2630

27-
5- Break <Books> down into <BookList> and <BookFilter>
31+
5- Break &lt;Books&gt; down into &lt;BookList&gt; and &lt;BookFilter&gt;
2832

2933

3034
6- What do you think it would make sense to componentize next? Are there any parts on that view that you can reuse? Try to explain to a mentor what you want to refactor before you code :)

0 commit comments

Comments
 (0)