@wcdw3/lazy-render
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

LazyRender

Uses react-intersection-observer to render components when they appear on the screen.

Install

npm i -S react-intersection-observer @wcdw3/lazy-render

Usage

Edit @wcdw3/LazyRender Example

import LazyRender from '@wcdw3/lazy-render';

const Foo = () => {
  return (
    <LazyRender fallback={<div>Loading...</div>}>
      <div>ta-da 🎉</div>
    </LazyRender>
  );
};

Package Sidebar

Install

npm i @wcdw3/lazy-render

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

6.46 kB

Total Files

12

Last publish

Collaborators

  • wes5510