Gathering detailed insights and metrics for react-lazily-render-scroll-parent
Gathering detailed insights and metrics for react-lazily-render-scroll-parent
Gathering detailed insights and metrics for react-lazily-render-scroll-parent
Gathering detailed insights and metrics for react-lazily-render-scroll-parent
Delay mounting expensive components until a placeholder component has been scrolled into view.
npm install react-lazily-render-scroll-parent
Typescript
Module System
Node Version
NPM Version
JavaScript (99.34%)
HTML (0.66%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
22 Stars
30 Commits
9 Forks
4 Watchers
25 Branches
5 Contributors
Updated on Nov 19, 2021
Latest Version
1.1.1
Package Id
react-lazily-render-scroll-parent@1.1.1
Size
5.99 kB
NPM Version
6.4.1
Node Version
10.10.0
Published on
May 20, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Lazily render react components.
Delay mounting expensive components until a placeholder component has been scrolled into view.
npm install --save react-lazily-render
1import React from 'react'; 2import LazilyRender from 'react-lazily-render'; 3 4<div> 5 ...lots of content... 6 <LazilyRender 7 placeholder={<PlaceholderComponent/>} 8 content={<ExpensiveComponent/>} 9 /> 10 ...lots of content... 11 <LazilyRender> 12 {render => render 13 ? <ExpensiveComponent/> 14 : <PlaceholderComponent/> 15 } 16 </LazilyRender> 17 ...lots of content... 18</div> 19
string
The className
applied to the wrapping element.
string | React.ComponentClass
The wrapping component.
e.g.
1<LazilyRender component="span"/> 2<LazilyRender component={MyComponent}/>
number | {top?: number, right?: number, bottom?: number, left?: number}
An offset applied to the element for calculating whether the component has been scrolled into view.
You can specify individual values for each side, or a single value used for all sides.
React.Node
Rendered when the component hasn't been scrolled into view.
React.Node
Rendered when the component has been scrolled into view.
(render: boolean) => React.Node
Called to render something depending on whether the component has been scrolled into view.
() => void
Called when the component becomes visible for the first time.
HTMLElement | undefined
The container which react-lazily-render
listens to for scroll events.
This property can be used in a scenario where you want to specify your own scroll container - e.g. if the component you are rendering is asynchronously added to the DOM.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
114 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More