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 App component and state

The App component is the outer shell of the book manager application. You can think of App as the container for every other component that gets rendered. It is responsible for rendering the left-hand side navigation, and for defining the routes of the application so that the appropriate components are mounted and unmounted as the user moves around. Here's what the implementation of App looks like:

import React, { Component } from 'react';
import { connect } from 'react-redux';import { BrowserRouter as Router, Route, NavLink } from 'react-router-dom'; import logo from './logo.svg'; import './App.css'; import Home from './Home'; import NewBook from './NewBook'; import BookDetails from './BookDetails'; class App extends ...

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