The datasource plugin developed by anjularJS can use toggleEditorMode() to support edit mode switching. How to do with reactJS?

I developed a data source plugin using ReactJS, and I need to switch the editing mode, but it seems to only support angularJS plugins from here.How do I handle edit mode switching in reactJS?