New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mobx-react-lite

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-react-lite - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.babelrc

2

dist/observer.d.ts

@@ -1,3 +0,3 @@

import { FunctionComponent } from 'react';
import { FunctionComponent } from "react";
export declare function useStaticRendering(enable: boolean): void;
export declare function observer<P>(baseComponent: FunctionComponent<P>): FunctionComponent<P>;
{
"name": "mobx-react-lite",
"version": "0.1.0",
"version": "0.1.1",
"description": "Lightweight React bindings for MobX based on experimental React hooks",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -10,6 +10,6 @@ # mobx-react-lite

[![NPM](https://nodei.co/npm/mobx-react-lite.png)](https://www.npmjs.com/package/mobx-react-lite)
The more detailed documentation will be coming later. For now you can just use `observer` & `Observer` same way as before. There is no `Provider/inject` anymore as these can be handled by `React.createContext` without extra hassle. There might be bugs, as tests are not covering all scenarios just yet. No devtools & SSR support.
Note that class based components are not supported except using `<Observer>` directly in its `render` method.
Package is not published to NPM just yet. If you are impatient, refer to the comment on [how to try it in your project](https://github.com/mobxjs/mobx-react/issues/588#issuecomment-435571367).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc