O'Reilly logo

React 16 Tooling by Adam Boduch

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

The Home component and state

The Home component is the first component that is rendered as a child component of App. The route for Home is /, and this is where the filter text input and book list are rendered. Here is what the user will see when they first load the app:

To the left, you have the two navigation links that are rendered by the App component. To the right of these links you have the filter text input, followed by the list of books—React books no less. Now, let's take a look at the Home component implementation:

import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchBooks } from '../api'; ...

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