Chapter 18. Project: Building a bookstore with React Router

This chapter covers

  • Project structure and Webpack configuration
  • The host HTML file
  • Creating components
  • Launching the project

The project in this chapter focuses mainly on demonstrating how to use React Router, some ES6 features, and Webpack. In this project, you’ll build a simple e-commerce storefront for a bookstore (figure 18.1).

Figure 18.1. Nile Book Store home page with a list of books

You’ll learn how to create browser routing, as well as the following techniques for working with React Router:

  • How to pass data to a route and access it
  • How to access URL parameters

Get React Quickly: Painless web apps with React, JSX, Redux, and GraphQL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.