Created
August 4, 2020 10:31
-
-
Save nivleshc/be786aec033f536620b2987e34de9d45 to your computer and use it in GitHub Desktop.
App.js that is used in react app to publish an Amazon Sumerian scene privately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import { withAuthenticator, SumerianScene } from 'aws-amplify-react'; | |
import Amplify from 'aws-amplify'; | |
import awsmobile from './aws-exports'; | |
import '@aws-amplify/ui/dist/style.css'; | |
Amplify.configure(awsmobile); | |
class App extends Component { | |
render() { | |
return ( | |
<div style={{ height: '100vh' }}> | |
<SumerianScene sceneName='LifeInsuranceHost' /> | |
</div> | |
); | |
} | |
}; | |
export default withAuthenticator(App, { includeGreetings: true }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment