I am new to redux
, and feel confused with its syntax.
In Tutorial - 02_about-state-and-meet-redux, I see
import { createStore } from 'redux'
var store = createStore(() => {})
I'm surprised that:
No
;
, like pythonWhat is
() => {}
?Import follow what rule?
What is the syntax
Redux
is using?
Frontend javascript
doesn't have such syntax, and I also check node.js: The Node Beginner Book which is different too.
Search for redux grammar
result nothing.