• Joe Haddad's avatar
    Bootstrap with Yarn when available (#2673) · aad5987a
    Joe Haddad authored
    * Bootstrap with Yarn if we can
    
    * Update test scripts
    
    * Check OS and npm concurrency ability
    
    * Windows support
    
    * Update bootstrap.js
    
    * Install yarn before bootstrap
    aad5987a
adding-a-router.md 732 bytes
id: adding-a-router
title: Adding A Router

Create React App doesn't prescribe a specific routing solution, but React Router is the most popular one.

To add it, run:

npm install --save react-router-dom

Alternatively you may use yarn:

yarn add react-router-dom

To try it, delete all the code in src/App.js and replace it with any of the examples on its website. The Basic Example is a good place to get started.

Note that you may need to configure your production server to support client-side routing before deploying your app.