lbkchen / ibn-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ibn-boilerplate

Setup

git clone https://github.com/lbkchen/ibn-boilerplate.git
cd ibn-boilerplate
yarn install

Run App

yarn start

Adding a component

  1. Create a new file in src/components/YourComponent.jsx.
  2. 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>
  1. 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.
  2. Add any assets to src/images.
  3. You will be able to see YourComponent at localhost:3000/your_path, where the path is specified in the App.js.

About


Languages

Language:JavaScript 67.0%Language:CSS 31.1%Language:HTML 2.0%