react-custom-editor-ts
v0.0.1
Published
Пример использования ```js import {FC, useState} from "react"; import {Editor, EditorState, defaultStateEditor} from "react-custom-editor-ts"
Downloads
7
Readme
Реадктор текста
Пример использования
import {FC, useState} from "react";
import {Editor, EditorState, defaultStateEditor} from "react-custom-editor-ts"
const App:FC = () => {
const [html, setHtml] = useState<EditorState>(defaultStateEditor)
return (
<Editor value={html} onChange={setHtml} />
);
}
export default App;