Skip to content

Instantly share code, notes, and snippets.

@SahanAmarsha
Created January 23, 2022 10:50
Show Gist options
  • Save SahanAmarsha/e6bb1fffab064770c9c241accdec5d4f to your computer and use it in GitHub Desktop.
Save SahanAmarsha/e6bb1fffab064770c9c241accdec5d4f to your computer and use it in GitHub Desktop.
Index.js File after configuring Amplify
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import Amplify from 'aws-amplify';
import "@aws-amplify/ui-react/styles.css";
import {AmplifyProvider} from "@aws-amplify/ui-react";
import awsConfig from './aws-exports';
Amplify.configure(awsConfig);
ReactDOM.render(
<React.StrictMode>
<AmplifyProvider>
<App/>
</AmplifyProvider>
</React.StrictMode>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment