ben-x9 / react-tooling

Tooling for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Tooling for React

Motivation and architecture design


npm install react-tooling

Try in sandbox

Gitter channel

Have some question reach us on:

API Documentation


Load an application with an initial state and a react component

<State extends Router.State<Route>, Route>(
    initialState: State,
    RootView: RootView<State, Route>,
    routeToUri: RouteToUri<Route>,
    uriToRoute: UriToRoute<Route>,
    module: NodeModule,
    hooks: AppHooks<State, Route> = {},
    opts: Opts = defaultOpts) => void


Allow to create a dispatch function for an inner property of the state. Useful for updating a child state

type F1<A, B> = (a: A) => B
type Curried<A, B, C> = (a: A) => (b: B) => C
type Continuation<S> = S | Promise<F1<S, S>> | Observable<F1<S, S>>
type UpdateF<S> = F1<S, Continuation<S>>
type DispatchUpdate<S> = (
  update: UpdateF<S>,
  name?: string,
  noReplay?: boolean
) => void
type GetAndSet<S, S1> = {
  get: F1<S, S1>
  set: Curried<S1, S, S>

<S, S1>(
  parentDispatch: DispatchUpdate<S>,
  lens: GetAndSet<S, S1>
): DispatchUpdate<S1>
ezoic increase your site revenue


Tooling for React

License:MIT License


Language:TypeScript 99.4%Language:JavaScript 0.6%