Updating references in index.html

The generated index.html file, as shown here, references the bundle files, expecting these files to be in the same folder:

<html>  <head>    <title>MERNVR</title>    <style>body { margin: 0 }</style>    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">  </head>  <body>    <!-- Attachment point for your app -->    <div id="container"></div>    <script src="./client.bundle.js"></script>    <script>      // Initialize the React 360 application      React360.init(        'index.bundle.js',        document.getElementById('container'),        {          assetRoot: 'static_assets/',        }      )     </script>  </body></html>

We need to update index.html to refer to the correct location of the client.bundle.jsindex.bundle.js, and static_assets folders. ...

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.