0.1.0 • Published 5 years ago
roadbotics-os-sidebar v0.1.0
roadbotics-os-sidebar
Made with create-react-library
Install
npm install --save roadbotics-os-sidebarUsage (Refer to example folder to use as sandbox)
import React from 'react'
import makeStyles from '@material-ui/core/styles/makeStyles'
import SideBar from 'roadbotics-os-sidebar'
const useStyles = makeStyles({
content: {
flexGrow: 1,
background: 'red'
}
})
const App = () => {
const classes = useStyles()
return (
<SideBar>
<main className={classes.content}>
<h2>RoadWay Os</h2>
</main>
</SideBar>
)
}
export default AppDevelopment
As you are developing the sidebar it is convienent to run npm run start at the root of the project while in another tab run npm start. This will allow changes to be seen in realtime.
0.1.0
5 years ago