Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toggleItalic = () => {
this.executeCommand('italic')
const current = (this.state.fontStyle as number) || 0
const fontStyle = FontStyle.isItalic(this.state.fontStyle)
? current - FontStyle.italic
: current + FontStyle.italic
this.setState({ fontStyle })
}
<div name="" style="{{">{name}</div>
))}
<div>
<button>
</button><button>
</button><button style="{{">
</button></div>