react

Publishing with React VR

  • Posted on: 17 March 2017
  • By: davis

Here are some steps you might have overlooked when publishing your React VR project for the first time.

Here's my first finished project: http://daviseford.com/tcpi-react-vr/

1.) You have to upload the static_assets folder yourself - it's not included in the build folder.

2.) You need to modify your vr/build/index.html file to resemble this

<!-- When you're ready to deploy your app, update this line to point to your compiled client.bundle.js -->
    <script src="./build/client.bundle.js"></script>
    <script>
      // Initialize the React VR application
      ReactVR.init(
        // When you're ready to deploy your app, update this line to point to
        // your compiled index.bundle.js
        './build/index.bundle.js',
        // Attach it to the body tag
        document.body
      );
    </script>

3.) Seriously, pay careful attention to the index.html file

Importing Images in Electron React Boilerplate

  • Posted on: 11 February 2017
  • By: davis

You'll need to do a few things to properly import images in electron-react-boilerplate

First, create a directory under app/ to store your image files (e.g. app/img). Then drop your images in the folder.

Here's the correct (and only!) way to import images correctly in electron-react-boilerplate: