How to use the overmind-react function in overmind-react

To help you get started, we’ve selected a few overmind-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerebral / overmind / packages / demos / react-typescript-todomvc / src / app / index.ts View on Github external
import * as actions from './actions'
import * as context from './context'
import * as state from './state'

const config = {
  context,
  actions,
  state,
}

const app = new App(config)

export type Connect = TConnect

export const connect = createConnect(app)

type IApp = TApp

export default app

// ==== The following types are copied from overmind documentation ====

export type Action = TAction<
  IApp,
  Value,
  ReturnValue
>

export type Mutate = TMutate

export type Context = TContext

overmind-react

Functional actions

MIT
Latest version published 8 months ago

Package Health Score

69 / 100
Full package analysis

Popular overmind-react functions