One of the neat things, although it can be frustrating, is that web projects are frequently updated. During the writing of this book, React VR was updated. There are a couple of different ways to do an upgrade:
- You can install/create a new app with the same name
- You will then go to your old app and copy everything over
- This is a facelift upgrade or Rip and Replace
- Do an update. Mostly, this is an update to
package.json
, and then deletenode_modules
and rebuild it. This is an upgrade in place.
It is up to you which method you use, but the major difference is that an upgrade in place is somewhat easier—no source code to modify and copy—but it may or may not work. A Facelift upgrade also relies on you using the correct react-vr-cli
. There is a notice that runs whenever you run React VR from the Command Prompt that will tell you whether it's old:
