May 2017
Intermediate to advanced
388 pages
7h 30m
English
Here, we refactored the App component to render two Link components that will become HTML links to the two containers: ProductsContainer and CartContainer:

When rendered in the DOM, it becomes just a <a> link with href:
<a href="/cart">Cart</a>
The App component is on the top of the tree, but it doesn't know which would be its children components and for that reason, we need to add {this.props.children}. This is required in order to render all its children. They will be rendered exactly there after the </ul> tag.
Read now
Unlock full access