Repository URL to install this package:
|
Version:
0.9.6 ▾
|
// const minicartSidebar = new SidebarItem('minicart')
// sidebarGroup.addSidebar(minicartSidebar)
// ReactDOM.createPortal(
// <Minicart>,
// document.getElementById('footer')
// )
// class MiniCart {
// renderMiniCart() {
// // return <h1>...</h1>
// }
// componentWillMount() {
// // minicartSidebar.setRender(this.render)
// }
// render() {
// // const view = this.renderMinicart()
// // minicartSidebar.setContents(view)
// const children = this.renderMinicart()
// return <SidebarPortal>{children}</SidebarPortal>
// }
// }
// class MiniCart extends React.Component {
// renderSidebar() {
// return <h1>sidebar eh</h1>
// }
// componentWillMount() {
// minicartSidebar.setRender(this.render)
// }
// render() {
// return this.renderSidebar()
// // const view = this.renderMinicart()
// // minicartSidebar.setContents(view)
// // const children = this.renderMinicart()
// // return <SidebarPortal>{children}</SidebarPortal>
// }
// }