react-fela
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -30,3 +30,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
value: function componentDidMount() { | ||
render(this.props.renderer, this.props.mountNode); | ||
if (!this.props.renderer.isNativeRenderer) { | ||
render(this.props.renderer, this.props.mountNode); | ||
} | ||
} | ||
@@ -33,0 +35,0 @@ }, { |
@@ -42,3 +42,5 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
(0, _felaDom.render)(this.props.renderer, this.props.mountNode); | ||
if (!this.props.renderer.isNativeRenderer) { | ||
(0, _felaDom.render)(this.props.renderer, this.props.mountNode); | ||
} | ||
} | ||
@@ -45,0 +47,0 @@ }, { |
{ | ||
"name": "react-fela", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "React bindings for Fela", | ||
@@ -28,7 +28,9 @@ "main": "lib/index.js", | ||
}, | ||
"devDependencies": { | ||
"fela-dom": "^5.0.1" | ||
}, | ||
"dependencies": { | ||
"fela": "^5.0.0", | ||
"fela-dom": "^5.0.0", | ||
"fela": "^5.0.1", | ||
"prop-types": "^15.5.8" | ||
} | ||
} |
@@ -12,18 +12,10 @@ # React Fela | ||
```sh | ||
npm i --save react-fela | ||
yarn add react-fela | ||
``` | ||
You may alternatively use `npm i --save react-fela`. | ||
Assuming you are using [npm](https://www.npmjs.com) as your package manager you can basically just `npm install` all packages. <br> | ||
Otherwise we also provide [UMD](https://github.com/umdjs/umd) builds for each package within the `dist` folder. You can easily use them via [unpkg](https://unpkg.com/). | ||
> **Caution**: You need to include both React and Fela on your own as well. | ||
```HTML | ||
<!-- Development build (with warnings) --> | ||
<script src="https://unpkg.com/react-fela@4.3.5/dist/react-fela.js"></script> | ||
<!-- Production build (minified) --> | ||
<script src="https://unpkg.com/react-fela@4.3.5/dist/react-fela.min.js"></script> | ||
``` | ||
## API Reference | ||
* [`<Provider renderer [mountNode]>`](docs/Provider.md) | ||
* [`<Provider renderer>`](docs/Provider.md) | ||
* [`connect(mapStylesToProps)`](docs/connect.md) | ||
@@ -30,0 +22,0 @@ * [`createComponent(rule, [type], [passThroughProps])`](docs/createComponent.md) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
229
0
17107
1
32
- Removedfela-dom@^5.0.0
- Removedfela-dom@5.0.8(transitive)
Updatedfela@^5.0.1