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
element;
var jsxString = document.getElementById('textarea').value;
What is the process I would use to convert this on the client? Is it possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…