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

react-freeze-v12n

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-freeze-v12n

Virtualization with react-freeze

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

react-freeze-v12n

Simple virtualization library with react-freeze and intersection observer.

Motivation

One use case for virtualization is rendering components just inside the window.

Virtualization libraries such as react-window or react-virtualized can do this, but they require a lot of complexity for what you want to do.

React Freeze freezes the rendering the components instead of unmounting. This library combines this approach and intersection observer to virtualize the components.

Usage

You just wrap components.

import React from "react";
import { Virtualization } from "react-virtualization-v12n"

const Component = () => {
  return <Virtualization><SomeItem></Virtualization>;
}

You also can set intersection observer options.

const Component = () => {
  return (
    <Virtualization intersectionOptions={{
      /* Optional options */
      threshold: 0,
    }}>
      <SomeItem>
    </Virtualization>
  );
};

Keywords

FAQs

Package last updated on 10 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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