Congrats! You divided the
GuineaPigs component into a container component and a presentational component: containers/GuineaPigsContainer.js and components/GuineaPigs.js.
Here are the steps we took:
render()method to render the presentational component with the proper props
In this programming pattern, the container component does the work of figuring out what to display. The presentational component does the work of actually displaying it. If a component does a significant amount of work in both areas, then that’s a sign that you should use this pattern!
If you’d like to learn more about this pattern, here are some articles to start with: