#Hello, how can I export the "Render" to html ? (I'm using ReactJS)
1 messages · Page 1 of 1 (latest)
You can use react’s renderToStaticMarkup method
but that way just give me a html, it not give me all the layout like css or css or js class of the other library(ex: antd) or the onChange onClick event I have integrate to that component
You want react output as a string rather than HTML output?
React output is hard, essentially part of https://github.com/measuredco/puck/issues/302
But it sounds like you're probably better off using renderToStaticMarkup and separately distributing your CSS and JS via a bundler. However, this is very much a user-land problem to solve and will vary depending on your setup
Puck should explore support for multi-framework support, including: Vue.js Svelte -> Insert other JS framework here <- Considerations The host application is React The components API is React...
ok, I'll try it, thank you
@formal frigate were you able to achieve it??
no I still can't achieve it @tribal ibex