forked from aws-samples/aws-amplify-quick-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
20 lines (16 loc) · 733 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";
import ReactDOM from "react-dom";
import Amplify from "aws-amplify";
import { AmazonAIPredictionsProvider } from "@aws-amplify/predictions";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import "normalize.css/normalize.css";
import "./index.css";
import amplifyConfig from "./aws-exports";
Amplify.configure(amplifyConfig);
Amplify.addPluggable(new AmazonAIPredictionsProvider());
ReactDOM.render(<App />, document.getElementById("root"));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();