@loona/react
Version:
App State Management done with GraphQL (react integration)
17 lines (16 loc) • 588 B
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { ActionObject } from '@loona/core';
import { Loona } from '../client';
export interface ActionProps {
action?: string;
children: (dispatchFn: (action?: ActionObject) => void) => React.ReactNode;
}
export declare class Action extends React.Component<ActionProps> {
static propTypes: {
action: PropTypes.Requireable<any>;
children: PropTypes.Validator<(...args: any[]) => any>;
};
createDispatch(loona?: Loona): (actionOrPayload: any) => void;
render(): JSX.Element;
}