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 |
- Just the children or a div containing the children.
React.Component