简体   繁体   中英

React, open from index.html

I have a very simple question about React, a JS framework.

How can you start React from index.html after a build.

And not by using serve -s build ?

@Stephy, I agree with @Tholle, any JavaScript based framework usually is deployed in the server under a web folder as a static bundle of hashed files and assets, which include the Index.html. So, in your case of using React, after you execute: npm build --prod, or something similar, you should get a minified version of your front-end code, which can be deployed in the server. Hope this helps for you!

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