Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reactive-box

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-box - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

package.json
{
"name": "reactive-box",
"version": "0.1.4",
"version": "0.1.5",
"description": "Minimalistic, fast, and highly efficient reactivity",

@@ -47,3 +47,3 @@ "scripts": {

"homepage": "https://github.com/betula/reactive-box#readme",
"gitHead": "eec22f5b1b7bbe4c0205793f02759aedf8889d97"
"gitHead": "8df18f1edaebd4406064cb2dae69bcb9098cb52a"
}

@@ -31,6 +31,6 @@ [![npm version](https://img.shields.io/npm/v/reactive-box?style=flat-square)](https://www.npmjs.com/package/reactive-box) [![bundle size](https://img.shields.io/bundlephobia/minzip/reactive-box?style=flat-square)](https://bundlephobia.com/result?p=reactive-box) [![code coverage](https://img.shields.io/coveralls/github/betula/reactive-box?style=flat-square)](https://coveralls.io/github/betula/reactive-box) [![typescript supported](https://img.shields.io/npm/types/typescript?style=flat-square)](./src/main.d.ts)

const ref = React.useRef<[T, () => void]>();
React.useEffect(() => ref.current![1], []);
if (!ref.current) {
ref.current = expr(Component, forceUpdate);
}
React.useEffect(() => ref.current![1], []);
return ref.current[0](props);

@@ -37,0 +37,0 @@ });

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