As you learned in the last Chapter 9, Do it Yourself – Native Modules and Three.js, we can include native code and JavaScript code into our world. Aside from breathing life into our world by making it more interesting visually, we can also bring the outside world in.
In this chapter, you will learn how to use React and JavaScript to bring the web into the VR world. You will learn how to use your existing high-performance code in VR.
First, we will need a VR world to start in. This time, we're going to Mars!
In this chapter, you will learn the following topics:
- Doing JSON/Web API calls
- The
Fetch
statement - Cross-Origin Resource Sharing (CORS)
- The
Networking tab for diagnostics
- The
Cylindrical Pano
statement - Justified text, similar to a flexbox (part of React Native)
- Conditional rendering
- Style sheets