Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/be786aec033f536620b2987e34de9d45 to your computer and use it in GitHub Desktop.
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
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