How to turn React Component into String
Unanswered
Alaskan Klee Kai posted this in #help-forum
Alaskan Klee KaiOP
I am using react-live. I want to convert a component to a string. Please tell me how to do it.
I want to convert a button component to a string in CodeSandBox.
I want to convert a button component to a string in CodeSandBox.
3 Replies
Alaskan Klee KaiOP
Alaskan Klee KaiOP
Can anybody tell me?
Alaskan Klee KaiOP
Is it an easy way to transform a React component:
into a string representation that is the input expected by react-live?
const Component = () => <h1>Hello World</h1>into a string representation that is the input expected by react-live?
const Component = () => <h1>Hello World</h1>