Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render () {
const ElementType = this.elementType
const classes = {
[styles.root]: true,
[styles.inline]: this.props.inline
}
return (
{ this.elementType === 'fieldset' && this.renderLegend() }
{ this.renderLabel() }
return (
{ this.elementType === 'fieldset' && this.renderLegend() }
{ this.renderLabel() }
{ this.props.children }
{ this.renderVisibleMessages() }
)
}
}