• Version 7.2.0
  • Published
  • 610 kB
  • 1 dependency
  • MIT license


npm i mobx-react
yarn add mobx-react
pnpm add mobx-react


React bindings for MobX. Create fully reactive components.



variable PropTypes

const PropTypes: {
observableArray: any;
observableArrayOf: any;
observableMap: any;
observableObject: any;
arrayOrObservableArray: any;
arrayOrObservableArrayOf: any;
objectOrObservableObject: any;


    function disposeOnUnmount

    disposeOnUnmount: {
    (target: any, propertyKey: PropertyKey): void;
    <TF extends Disposer | Disposer[]>(target: any, fn: TF): TF;

      function inject

      inject: {
      (...stores: string[]): <T extends unknown>(
      target: T
      ) => T & (T extends any ? IWrappedComponent<P> : never);
      <S, P, I, C>(fn: IStoresToProps<S, P, I, C>): <T extends unknown>(
      target: T
      ) => T & IWrappedComponent<P>;
      • higher order component that injects stores to a child. takes either a varargs list of strings, which are stores read from the context, or a function that manually maps the available stores from the context to props: storesToProps(mobxStores, props, context) => newProps

      Type Aliases

      type IWrappedComponent

      type IWrappedComponent<P> = {
      wrappedComponent: IReactComponent<P>;

        Package Files (5)

        Dependencies (1)

        Dev Dependencies (2)

        Peer Dependencies (2)


        To add a badge like this badgeto your package's README, use the codes available below.

        You may also use to create a custom badge linking to

        • Markdown
        • HTML
          <a href=""><img src="" alt=""></a>