April 2018
Intermediate to advanced
298 pages
6h 34m
English
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 ...