How can I use richText in custom component

Self-solved. I was building a FAQ component in React (JSX).

The richText input was for answer, I was passing it as a child <div>{answer}</div> and seeing

and
tags after editing…
now I’m using dangerouslySetInnerHTML:
<div dangerouslySetInnerHTML={{ __html: answer }}></div>

ChatGPT indicated this could work: <RichText content={answer} /> but I didn’t see where RichText was exported anywhere.

I also just found this answer from a previous Identical thread:

1 Like