Created
January 23, 2022 10:50
-
-
Save SahanAmarsha/e6bb1fffab064770c9c241accdec5d4f to your computer and use it in GitHub Desktop.
Index.js File after configuring Amplify
This file contains hidden or 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 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