Added in routing and bootstrap.
Also included react-lorem-ipsum to flesh out some page content.
npm i -s react-router-dom
npm i -s react-bootstrap
npm i -s bootstrap
npm i -s react-lorem-ipsum
Add the following CSS import into the top level index.ts after adding bootstrap module.
import 'bootstrap/dist/css/bootstrap.min.css';
Add these for typing info:
npm i --save-dev @types/react
npm i --save-dev @types/react-router-dom
Do I need this? I haven't added react-router-bootstrap module.
npm i --save-dev @types/react-router-bootstrap
Probably not. Looks like it is only for React Router v4 (or v3) -
https://www.npmjs.com/package/react-router-bootstrap
And this hasn't been updated in two years.
Investigate:
- react-bootstrap-submenu