1.6.0 • Published 6 years ago

@mree/mre-react-model v1.6.0

Weekly downloads
1
License
UNLICENSED
Repository
github
Last release
6 years ago

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"});
     }

     ...
}