The task is to replace existing material ui textFields with facebook's lexical plugin. I just want a bare-bones example of how to populate the rich text plugin with text.
I'm currently using this example
https://codesandbox.io/s/lexical-rich-text-example-5tncvy?file=/src/Editor.js
I've basically used this example as a separate react component. I want to be able to populate this component with a value
prop so that the text in that value
prop shows up as a regular paragraph.
Any subsequent saves can be stored as whatever object Lexical allows but for now, I want to be able to do is populate it with text.
I ultimately want to be able to use this rich text editor in my react app like this. How do I do it?
<MyLexicalRichTextEditor value={props.text} onChange={someOnChangeFunction}/>