Package Exports
- react-fela
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 (react-fela) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Fela
Official React bindings for Fela.
This package only includes React bindings for Fela.
It assumes you already know about Fela and how to use it.
Installation
npm i --save react-fela
Assuming you are using npm as your package manager you can basically just npm install
all packages.
Otherwise we also provide UMD builds for each package within the dist
folder. You can easily use them via unpkg.
Caution: You need to include both React and Fela on your own as well.
<!-- Development build (with warnings) -->
<script src="https://unpkg.com/react-fela@4.2.5/dist/react-fela.js"></script>
<!-- Production build (minified) -->
<script src="https://unpkg.com/react-fela@4.2.5/dist/react-fela.min.js"></script>
API Reference
<Provider renderer [mountNode]>
connect(mapStylesToProps)
createComponent(rule, [type], [passThroughProps])
<ThemeProvider theme [overwrite]>
Usage
For more information and best practices on how to effectively use this package, please check out the main Fela Documention - Usage with React. There you will also find some usage examples. This package only contains the pure API reference documentation.
License
Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.