The finished VR world

Your complete code should look like this:

import React, {Component } from 'react';import {  AppRegistry,  asset,  AmbientLight,  Box,  DirectionalLight,  Div,  Model,  Pano,  Plane,  Text,  Vector,  View,  } from 'react-vr';class Pedestal extends Component {    render() {        return (          <View>          <Box           dimWidth={.4}          dimDepth={.4}          dimHeight={.5}          lit          texture={asset('travertine_striata_vein_cut_honed_filled_Base_Color.jpg')}          style={{            transform: [ { translate: [ this.props.MyX, -1.4, this.props.MyZ] } ]            }}        />          <Box           dimWidth={.5}          dimDepth={.5}          dimHeight={.1}          lit          texture={asset('travertine_striata_vein_cut_honed_filled_Base_Color.jpg')}          style={{            transform: [ { translate: [ this.props.MyX, -1.1, this.props.MyZ] } ]            }}        />          <Box           dimWidth={.5} dimDepth={.5} ...

Get Getting Started with React VR 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.