Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 921 Bytes
import "@babel/polyfill";
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import Amplify, { Auth } from "aws-amplify";
import awsConfig from '../config/aws.json';
import configureStore from './redux/store'
import Application from './Application';
Auth: {
mandatorySignIn: true,
region: awsConfig.UserPoolId.split('_')[0],
userPoolId: awsConfig.UserPoolId,
userPoolWebClientId: awsConfig.UserPoolClientId,
identityPoolId: awsConfig.IdentityPoolId,
API: {
endpoints: [
name: "comments",
endpoint: awsConfig.ServiceEndpoint,
region: awsConfig.ServiceEndpoint.split('.')[2],
const store = configureStore();
<Provider store={store}>
<Application />
, document.getElementById('root'));
You can’t perform that action at this time.