Skip to content

Latest commit

 

History

History
executable file
·
59 lines (29 loc) · 914 Bytes

File metadata and controls

executable file
·
59 lines (29 loc) · 914 Bytes

Starter React Typescript Project

Setting Up

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';

Adding Typing Information

Add these for typing info:

npm i --save-dev @types/react
npm i --save-dev @types/react-router-dom

react-router-bootstrap

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.

Other Notes

Investigate:

  • react-bootstrap-submenu