redux sample with slim redux source code

code sample没有package.json文件,也就没有任何外部依赖,直接使用slim redux source code。

slim resux只有90多行。

nodejs对es6的import export还不支持,这里使用了stackoverflow上一位网友的办法,js文件后缀改成mjs, 用 node --experimental-modules index.mjs

code sample下载

引用:

https://gist.github.com/gaearon/ffd88b0e4f00b22c3159#comments

https://stackoverflow.com/questions/45854169/how-can-i-use-an-es6-import-in-node/50641589#50641589

原文地址:https://www.cnblogs.com/dirichlet/p/9454517.html