React component to help labeling entities within a given string of text. Built on: https://www.slatejs.org
Install
npm i slate-entity-labeler
Import
import { SlateEntityLabeler } from 'slate-entity-labeler'
Declare
<SateEntityLabeler
text={this.state.text}
entities={this.state.entities}
labeledEntities={this.state.labeledEntities}
onChange={this.onChangeLabeledEntities}
/>