How to complete the optimal solution of a react-related codesandbox without the help of the back-end

write online at any time without the need for data storage, and compile the results at any time, similar to the online editing of echarts"s demo

.

I know that there is already a library ( https://github.com/developit/htm) that can parse react in Html. But I don"t quite know how to convert the code entered in the page compilation area (actually a large input box) (a bunch of strings) into runnable react code.

ask the experienced gods to explain the optimal solution.

if your answer is, "you can try this library, which library you can refer to", don"t write it down. You can pay attention to this problem together and make progress together.

Dec.17,2021

react-prism this library

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be67c3-30b5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be67c3-30b5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?