-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ch setup redux 165412865 #5
Conversation
src/store/initialState.js
Outdated
@@ -0,0 +1 @@ | |||
module.exports= {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
const hostname = window.location.hostname; | ||
const isLocal = hostname === 'localhost' || hostname === '127.0.0.1'; | ||
|
||
export default createStore( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'export' is only available in ES6 (use 'esversion: 6').
import reducers from '../reducers'; | ||
|
||
const hostname = window.location.hostname; | ||
const isLocal = hostname === 'localhost' || hostname === '127.0.0.1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
import initialState from './initialState'; | ||
import reducers from '../reducers'; | ||
|
||
const hostname = window.location.hostname; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
import { composeWithDevTools } from 'redux-devtools-extension'; | ||
import thunk from 'redux-thunk'; | ||
import initialState from './initialState'; | ||
import reducers from '../reducers'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
src/serviceWorker.js
Outdated
}); | ||
} | ||
|
||
export function unregister() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'export' is only available in ES6 (use 'esversion: 6').
src/serviceWorker.js
Outdated
registerValidSW(swUrl, config); | ||
} | ||
}) | ||
.catch(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
src/serviceWorker.js
Outdated
) { | ||
// No service worker found. Probably a different app. Reload the page. | ||
navigator.serviceWorker.ready.then(registration => { | ||
registration.unregister().then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
src/serviceWorker.js
Outdated
(contentType != null && contentType.indexOf('javascript') === -1) | ||
) { | ||
// No service worker found. Probably a different app. Reload the page. | ||
navigator.serviceWorker.ready.then(registration => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
src/serviceWorker.js
Outdated
fetch(swUrl) | ||
.then(response => { | ||
// Ensure service worker exists, and that we really are getting a JS file. | ||
const contentType = response.headers.get('content-type'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
d1ba3ab
to
75e3060
Compare
@@ -0,0 +1,2 @@ | |||
const reducers = {}; | |||
export default reducers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'export' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,2 @@ | |||
const reducers = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
ReactDOM.render(<App />, document.getElementById('root')); | ||
ReactDOM.render( | ||
<Provider> | ||
<App /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw '<'.
Unrecoverable syntax error. (52% scanned).
|
||
ReactDOM.render(<App />, document.getElementById('root')); | ||
ReactDOM.render( | ||
<Provider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'Provider'.
Expected an identifier and instead saw '<'.
@@ -3,8 +3,14 @@ import ReactDOM from 'react-dom'; | |||
import './index.css'; | |||
import App from './components/App'; | |||
import * as serviceWorker from './serviceWorker'; | |||
import { Provider } from 'react-redux'; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
What does this PR do?
Set up redux