Skip to Content
React 16 Tooling
book

React 16 Tooling

by Adam Boduch, Christopher Pitt
April 2018
Intermediate to advanced content levelIntermediate to advanced
298 pages
6h 34m
English
Packt Publishing
Content preview from React 16 Tooling

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'; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro React 16

Pro React 16

Adam Freeman

Publisher Resources

ISBN: 9781788835015Supplemental Content