стоп?
import React, {useState, memo} from 'react';
import FroalaEditorInput from 'react-froala-wysiwyg';
import 'froala-editor/js/froala_editor.pkgd.min.js';
// Require Editor CSS files.
import 'froala-editor/css/froala_style.min.css';
import 'froala-editor/css/froala_editor.pkgd.min.css';
const FroalaComponent = memo(() => {
const [text, setText] = useState('props.value')
return (
<FroalaEditorInput
tag='textarea'
model={text}
onModelChange={()=>setText(text)}
/>
)
})
export default FroalaComponent
покажи FroalaEditorInput
Обсуждают сегодня