mobx-react-lite

  • Version 5.0.0
  • Published
  • 279 kB
  • No dependencies
  • MIT license

Install

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

Overview

Lightweight React bindings for MobX based on function components and Hooks

Index

Variables

variable clearTimers

const clearTimers: any;

    variable Observer

    const Observer: typeof ObserverComponent;

      Functions

      function enableStaticRendering

      enableStaticRendering: (enable: boolean) => void;

        function isUsingStaticRendering

        isUsingStaticRendering: () => boolean;

          function observer

          observer: {
          <C extends React.FunctionComponent<any>>(baseComponent: C): any;
          <P extends object>(baseComponent: React.FunctionComponent<P>): any;
          <P extends object, TRef = {}>(
          baseComponent: React.ForwardRefExoticComponent<any>
          ): React.MemoExoticComponent<React.ForwardRefExoticComponent<any>>;
          };

            function Observer

            Observer: typeof ObserverComponent;

              function useLocalObservable

              useLocalObservable: <TStore extends object>(
              initializer: () => TStore,
              annotations?: AnnotationsMap<TStore, never>
              ) => TStore;

                Package Files (5)

                Dependencies (0)

                No dependencies.

                Dev Dependencies (1)

                Peer Dependencies (2)

                Badge

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

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/mobx-react-lite.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/mobx-react-lite)
                • HTML
                  <a href="https://www.jsdocs.io/package/mobx-react-lite"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>