Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:


// new topBottomStyles()
// const view = new StyledSidebarItem
// const view = <StyledSidebarItem />


class StyledSidebarItem extends React.Component {
  static defaultProps = {
    tag: 'aside',
    styles: `
      position: fixed;
    `,
  }
  componentWillMount() {
    // compiles, adds
    applicationStyles.add(this.props.styles)
  }
  render() {
    const Tag = this.props.tag
    // omit('tag, styles')
    const { tag, styles, ...remainingProps } = this.props

    return <Tag {...remainingProps} />
  }
}