@mree/mre-react-model

1.6.0 • Public • Published

mre-react-model

Engloba todos os componentes utilitários de modelo, como o Action e Store que estão relacionados ao modelo Flux.

Instalação:

npm i -save @mree/mre-react-model

Importar Componentes:

import Model from '@mree/mre-react-model';
//ou individualmente
import {BaseComponent} from '@mree/mre-react-model';
import {Action} from '@mree/mre-react-model';
import {Store} from '@mree/mre-react-model';
import {View} from '@mree/mre-react-model';
import {Storage} from '@mree/mre-react-model';
import {BaseConstants} from '@mree/mre-react-model';
import {AppDispacher} from '@mree/mre-react-model';

Exemplo de Utilização:

import {View, Action} from '@mree/mre-react-model';

class ModelComponent extends View {

     constructor(props) {
            super(props);
            this._bind();
            this.state = {};
     }

     componentWillMount() {

        Action._GET({
            substore: this.props.substore,
            id: "objeto",
            method: "GET",
            url: "/test/objeto"});
     }

     ...
}

Dependencies (13)

Dev Dependencies (12)

Package Sidebar

Install

npm i @mree/mre-react-model

Weekly Downloads

3

Version

1.6.0

License

UNLICENSED

Unpacked Size

163 kB

Total Files

14

Last publish

Collaborators

  • mree