Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toggleBold = () => {
this.executeCommand('bold')
const current = (this.state.fontStyle as number) || 0
const fontStyle = FontStyle.isBold(this.state.fontStyle)
? current - FontStyle.bold
: current + FontStyle.bold
this.setState({ fontStyle })
}
'Comic Sans MS',
'Courier New',
'Georgia',
'Lucida Console',
'Tahoma',
].map(name => (
<div name="" style="{{">{name}</div>
))}
<div>
<button>
</button><button>
</button></div>