Skip to content

Instantly share code, notes, and snippets.

@RSpace
Last active Jan 3, 2016
Embed
What would you like to do?
MeetupVR - Wrapper
class Wrapper extends Component {
render() {
const { vrMode } = this.props
if (vrMode) {
return (
<div>
<Scene>
<Camera><Cursor/></Camera>
<Members/>
<VRModeSwitcher/>
</Scene>
</div>
)
} else {
return (
<div>
<VRModeSwitcher/>
<Members/>
</div>
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment