How would I take a string, and convert it to jsx? For example, if I bring in a string from a textarea, how could I convert it to a React
jsx
textarea
React
Here's a little utility component for this:
const RawHtml = ({ children="", tag: Tag = 'div', ...props }) => ;
Sample usage:
{"Loremipsum"}