...
componentDidMount() {
const { editorArea } = this.refs;
const editor = new SirTrevor.Editor({
el: editorArea,
defaultType: 'Text',
iconUrl: 'build/sir-trevor-icons.svg'
});
}
render() {
return (
<div>
<textarea className="js-st-instance" ref="editorArea"></textarea>
</div>
)
}
...