0.0.4 • Published 6 years ago
vacation-offline-components v0.0.4
vacation-offline-components
some components used in vacation's offline-sites
contain: Header, SideNav
Install
npm install --save vacation-offline-components
Usage
- first,import comps from vacation-offline-components
import { Header, SideNav } from 'vacation-offline-components'
- next, use these components in your react component
class App extends React.Component {
render() {
return (
<div>
<Header userInfo={userInfo} />
<SideNav uid={uid} />
</div>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'))
you should give an userInfo prop to Header and also an uid prop to SideNav