Photon components built with React
react-photon
Photon components built with React.
installation
npm i -S react-photon
dynamic import
-
install
babel-plugin-import
npm i -D babel-plugin-import
-
.babelrc
{
"presets": ["@babel/preset-env", "@babel/react"],
"plugins": [
// ....
[ "import", { "libraryName": "react-photon", "libraryDirectory": "dist/lib" } ]
]
}