项目作者: afeiship

项目描述 :
Photon components built with React.
高级语言: JavaScript
项目地址: git://github.com/afeiship/react-photon.git
创建时间: 2017-09-07T10:02:38Z
项目社区:https://github.com/afeiship/react-photon

开源协议:

下载


react-photon

Photon components built with React.

thanks to

@frostney Add me to the developer of react-photon.

preview

installation

  1. npm i -S react-photon

dynamic import

  1. install babel-plugin-import

    1. npm i -D babel-plugin-import
  2. .babelrc

    1. {
    2. "presets": ["@babel/preset-env", "@babel/react"],
    3. "plugins": [
    4. // ....
    5. [ "import", { "libraryName": "react-photon", "libraryDirectory": "dist/lib" } ]
    6. ]
    7. }

resources