import * as jsx from 'reactiv';
import {Store} from "./Store";
import * as log from "./Log";
export class StoreComponent
extends jsx.Component
{
state: S;
props: P;
private _callOnDismount: Function[] = [];
private _stores: Store[];
setState(f: S | ((prevState: S, props: P) => S), callback?: () => any): void {
if (f instanceof Object) {
this.state =