This is not related to const (this is just a way to define a constant), but instead to destruct objects .
So, they are all identical:
var createStore = Redux.createStore; const { createStore: createStore } = Redux; const { createStore } = Redux;
On the line const { createStore: createStore } = Redux; the first createStore defines the Redux property to receive. The second createStore defines the name under which it is available after the declaration.
In addition, in ES6, the definition of objects of type { name: name } can be shortened to { name } .
source share