1.0.2 • Published 10 years ago

fluxible-provider v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Fluxible Provider

Provide executeAction and getStore to your component. You can use it as decorator too.

NPM version

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 zlatkofedor@cherrysro.com