https://github.com/afeiship/react-photon
Photon components built with React.
https://github.com/afeiship/react-photon
css electron ios mac macos photon react ui uikit
Last synced: over 1 year ago
JSON representation
Photon components built with React.
- Host: GitHub
- URL: https://github.com/afeiship/react-photon
- Owner: afeiship
- Created: 2017-09-07T10:02:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T16:44:45.000Z (almost 5 years ago)
- Last Synced: 2025-02-27T03:54:42.673Z (over 1 year ago)
- Topics: css, electron, ios, mac, macos, photon, react, ui, uikit
- Language: JavaScript
- Homepage:
- Size: 3.72 MB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# react-photon
> Photon components built with React.
## thanks to
[@frostney](https://github.com/frostney) Add me to the developer of `react-photon`.
## preview
- https://afeiship.github.io/react-photon/
## installation
```shell
npm i -S react-photon
```
## dynamic import
1. install `babel-plugin-import`
```shell
npm i -D babel-plugin-import
```
2. `.babelrc`
```js
{
"presets": ["@babel/preset-env", "@babel/react"],
"plugins": [
// ....
[ "import", { "libraryName": "react-photon", "libraryDirectory": "dist/lib" } ]
]
}
```
## resources
- http://photonkit.com/
- https://www.robinwieruch.de/minimal-react-webpack-babel-setup
- https://vuikit.js.org/guide/introduction