O'Reilly logo

React.js Essentials by Artemij Fedosejev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Build Complex React Components

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!

Creating the TweetList component

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required