简体   繁体   中英

Static Html file of a react render - server side rendering?

For future processing I want my server to render my React to static HTML and publish the HTML files into directory on my server.

How I do this? I looked at server side rendering such as https://www.npmjs.com/package/react-snapshot but I am not sure exactly if it will create a file I will be able to see - when I looked at the instructions it didn't seem to request a path for the file so I don't think I will be able to see the render file.

I hate to give such a vague and generic answer, but really your question (or lack thereof) is vague also, so ....

In short, there are many ways to convert HTML to Mobi, and this article outlines several of them: https://www.epubor.com/convert-html-to-mobi.html

If you're issue is more "how do I get HTML from JSX", you'll want to look into "server-side React rendering".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM