Is there a way to generate HTML in nodejs using the schema, uischema, data? I want it to look the same as the materialRenderers. The basic concept is to display the forms and let people fill them out and persist all pieces in the DB and then be able to print the form as a PDF.
Isn’t the regular approach of developing a React app sufficient? For example take a look at the React seed. All you need to do is to build in some communication to your backend (for example via REST), run npm run build and serve the output from any webserver.
Let me explain better. If I want to render it as HTML I need it to look identical to what the client sees on his screen but I want it to be a server process that generates this markup to create a PDF out of it and email it to the client.
Below is a component that is passed to ReactDOMServer.renderToString I get the following error and it does not render Warning: useLayoutEffect does nothing on the server
Whether you use server side rendering or not doesn’t change anything in principle. Either way you need to get the data back to the server for further processing, in your case to create a PDF.