Photon components built with React Sample in 2020

Photon components built with React Sample in 2020


tutorials -

react-photon

Photon components built with React.

installation

npm i -S react-photon

dynamic import

  1. install babel-plugin-import

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

{
  "presets": ["@babel/preset-env", "@babel/react"],
  "plugins": [
    // ....
    [ "import", { "libraryName": "react-photon", "libraryDirectory": "dist/lib" } ]
  ]
}

GitHub

Trending On Tutorial Stuff

Our Sponsors

Top Applications in Tutorial Stuff

Top Experts In Tutorial Stuff