Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-fela

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fela - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

es/Provider.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc