April 2020
Intermediate to advanced
716 pages
18h 55m
English
The index.html file, which was generated after bundling the React 360 project, references the bundle files expecting these files to be in the same folder, as shown in the following code:
<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 this index.html code to refer to the correct location ...
Read now
Unlock full access