) => void;
onChange?: (value: string) => void;
[restProp: string]: any; // onto
}
export interface EditorRefAttrs {
focus: () => void;
insertHTML: (html: string) => void;
insertText: (text: string) => void;
}
```
**for umd / \
```
```js
// myapp.js
let React = window.React;
let ReactDOM = window.ReactDOM;
let { Editor } = window.ReactEditor;
ReactDOM.render(, mountNode);
```
**for react < 16.8 we need hooks polyfill workaround**
```tsx
// todo
```
**for react-editor legacy version**
```sh
npm i -S react-editor@1.x
```
---
This project was bootstrapped with [create-react-library](https://github.com/transitive-bullshit/create-react-library) & [react-ts-demo](https://github.com/fritx/react-ts-demo).