Package Exports
- leafer-react
- leafer-react/dist/es/index.js
- leafer-react/dist/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (leafer-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Leafer-react
A React components library based on leafer-ui
Setup
You should install the package first
npm install leafer-react
Get Started
Use it like react component
import { LeaferApp, Frame, Rect } from 'leafer-react';
function MyLeaferApp () {
return (
<LeaferApp>
<Frame fill="#f5f5f5"}>
<Rect width={375} height={667} fill="red"/>
</Frame>
</LeaferApp>
)
}
export MyLeaferApp;
For more information, see the github.