June 2016
Intermediate to advanced
910 pages
18h 59m
English
In this chapter, we'll put everything we learned so far about React components in action by building the most complex components in our application, that is, child components of our Collection component. Our aim in this chapter is to gain a solid React experience and grow our React muscle. Let's get started!
As you know, our Collection component has two child components: CollectionControls and TweetList.
We'll first build the TweetList component. Create the following ~/snapterest/source/components/TweetList.react.js file:
var React = require('react'); var Tweet = require('./Tweet.react.js'); var listStyle = { padding: '0' }; var listItemStyle = { display: 'inline-block', listStyle: ...Read now
Unlock full access