diff --git a/docs/layers/components.md b/docs/layers/components.md index 36cccc5..79f433a 100644 --- a/docs/layers/components.md +++ b/docs/layers/components.md @@ -1,3 +1,60 @@ # Components This layer include [React components](https://facebook.github.io/react/docs/react-component.html) that let you split the UI into independent, reusable pieces, and think about each piece in isolation. + +## Add a new component + +To add a new page in Home.jsx (with side-bar and top-bar) : + +- In components/Home.jsx +- Inside the tag + +```javascript + + + {/* Add your here! */} + + +``` + +- Add your component route between tag to load in home page + +```javascript + +``` + +To add a new item for menu bar + +- In components/Home.jsx +- Inside the tag + +```javascript + + + {/* Add you here */} + + +``` + +- Add your component NavLink between tag + +```javascript + + } /> + {/* Other menu itemes */} + +``` + +*Note: You can choose your icon for from [material-ui icons](http://www.material-ui.com/#/components/svg-icon)* + +To add your page in Master page (without side-bar menu and top-bar) + +- In components/Master/Master.tsx +- Add your tag between tag + +```javascript + + + {/* Other routes */} + +```