const _handleChangeStyle = (e: React.MouseEvent<HTMLButtonElement>) => {
const type = e.target.name // Error: Property 'name' does not exist on type 'EventTarget'.
handleChangeEditorState(RichUtils.toggleBlockType(editorState, type))
}
(e.target as HTMLButtonElement).name