git clone https://github.com/lbkchen/ibn-boilerplate.git
cd ibn-boilerplate
yarn install
- Create a new file in
src/components/YourComponent.jsx
.
- Add an entry to the
<div>
in src/App.js
like so (see the commented lines in that file for an example):
<Router>
<div>
<Route exact path="/" component={HomePage} />
{/* <Route exact path="/your_path" component={YourComponent} /> */}
</div>
</Router>
- You can add any stylesheets to
src/stylesheets
, and then import them in src/stylesheets/app.scss
. Prefer not to modify any of the existing stylesheets, as it may cause merge conflicts.
- Add any assets to
src/images
.
- You will be able to see
YourComponent
at localhost:3000/your_path
, where the path is specified in the App.js
.