1.6.0 • Published 2 years ago

react-lazy-pro v1.6.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

How to use

Install and use this package

Basic intruction for installation

npm i react-lazy-pro
  • This custom function only for React.js

  • This is the pro version on React.lazy()

  • All React.lazy() condition apply here
import delayload from "react-lazy-pro";
const LazyComponent = delayload(import("./Other"), 2000);

const App = () => {
  return (
    <Suspense fallback={null}>
      <LazyComponent />
    </Suspense>
  );
};

How That's Work

  • where Component Your Component
  • where delay -> Time for rendering component
default delay :300ms (millisecond)
const delayload: (Component: module, delay: Number);

Simple Neeraj -Web Developer

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago