How to use the overmind function in overmind

To help you get started, we’ve selected a few overmind 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
TMutate,
  TReaction,
} from 'overmind'
import createConnect, { TConnect } from 'overmind-react'

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
>