You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Container.js 564B

1234567891011121314151617181920212223
  1. /* @flow */
  2. import AbstractContainer from '../AbstractContainer';
  3. import type { Props } from '../AbstractContainer';
  4. /**
  5. * Represents a container of React/Web {@link Component} children with a style.
  6. *
  7. * @extends AbstractContainer
  8. */
  9. export default class Container<P: Props> extends AbstractContainer<P> {
  10. /**
  11. * Implements React's {@link Component#render()}.
  12. *
  13. * @inheritdoc
  14. * @returns {ReactElement}
  15. */
  16. render() {
  17. const { visible = true } = this.props;
  18. return visible ? super._render('div') : null;
  19. }
  20. }