INSTALL
Need Peer Dependencies:
yarn add lodash react styled-components prop-types react-dom react-transition-group
Install:
yarn add twreporter-react-bookmarks-components --save
USE
ES6:
import Header from 'twreporter-react-bookmarks-components/lib/components/bookmark'
const Page = (props) => (
<div>
<Header isChannelsDisplayed />
{props.children}
</div>
)
Props:
isChannelsDisplayed
: Config to display channels menu or not.
Developement
Source code
- For this package:
/header-components/src/
- Shared by all packages under
twreporter-react-components
: /shared/
gulp.watch
Automatically rebuild while files change.
cd twreporter-react-components/bookmarks-components
npm run dev
Pubish
cd twreporter-react-components/bookmarks-components
yarn publish
cd twreporter-react-components/bookmarks-components
npm run publish