Why does build have to be started in web environment after using react-router?

< H2 > Why do I have to start in the web environment after build after using react-router? < / H2 >

it"s all about how to start it on the Internet. Did not say why it should be placed in the web server environment


the scene here should be the react-router used by the pure client (browser) when rendering.
build generates static resources (html, css, js files), so you need a server, such as nginx, to receive connection requests from the client to return these static resources.

Menu