Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props)
this.state = {
mounted: false,
}
this.files = {}
if (process.browser) {
htmlToDraft = require('html-to-draftjs').default
Editor = require('react-draft-wysiwyg').Editor
this.setDefaults(this.props.fields)
}
this.generateField = this.generateField.bind(this)
this.generateFields = this.generateFields.bind(this)
}