Components

ConditionalWrapper

<ConditionalWrapper children className />

Constructor

# <ConditionalWrapper children className />

If className is true, return the children in a div, otherwise return just the children.

PropTypes:
Name Type Required Description Default
children node Yes The children to render
className string No The class name to add to the wrapper

View Source components/ConditionalWrapper/index.jsx, line 10

  • Just the children or a div containing the children.
React.Component