fluxible-provider
v1.0.2
Published
Provide executeAction and getStore to your component
Downloads
4
Maintainers
Readme
Fluxible Provider
Provide executeAction and getStore to your component. You can use it as decorator too.
Install
npm install fluxible-provider
Support us
Star this project on GitHub.
Usage provideExecuteAction
Decorator
import React, { Component } from 'react';
import { provideExecuteAction } from 'fluxible-provider';
@provideExecuteAction
export default class Example extends Component {
onSubmit() {
const { executeAction } = this.props;
executeAction(yourAction, yourPayload);
}
}
```
### Function
```js
import React, { Component } from 'react';
import { provideExecuteAction } from 'fluxible-provider';
class Example extends Component {
onSubmit() {
const { executeAction } = this.props;
executeAction(yourAction, yourPayload);
}
}
export default provideExecuteAction(Example);
```
## Usage provideGetStore
TODO
## Try our other React components
- Translate your great project [react-translate-maker](https://github.com/CherrySoftware/react-translate-maker)
- Forms [react-form-controlled](https://github.com/seeden/react-form-controlled)
- Google AdSense via Google Publisher Tag [react-google-publisher-tag](https://github.com/seeden/react-google-publisher-tag)
# Support us
Star this project on [GitHub][github-url].
## Credits
[Zlatko Fedor](http://github.com/seeden)
## License
The MIT License (MIT)
Copyright (c) 2016 Zlatko Fedor [email protected]