Replies: 1 comment
-
Yea you can either parse the JSON and traverse it to build up HTML or you can pass that state into a Lexical editor instance and then use Lexical's HTML serializer: https://lexical.dev/docs/concepts/serialization#lexical---html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I receive this config from the server. Can I convert it to html?
{"root":{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"kjkjkkjkjkjkjkjkjkj","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}
And display it in another component
Beta Was this translation helpful? Give feedback.
All reactions