
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@rc-component/virtual-list
Advanced tools
React Virtual List Component which works with animation.
https://virtual-list-react-component.vercel.app/
npm install
npm start
open http://localhost:8000/
import List from '@rc-component/virtual-list';
<List data={[0, 1, 2]} height={200} itemHeight={30} itemKey="id">
{(index) => <div>{index}</div>}
</List>;
| Prop | Description | Type | Default |
|---|---|---|---|
| children | Render props of item | (item, index, props) => ReactElement | - |
| component | Customize List dom element | string | Component | div |
| data | Data list | Array | - |
| disabled | Disable scroll check. Usually used on animation control | boolean | false |
| height | List height | number | - |
| itemHeight | Item minimum height | number | - |
| itemKey | Match key with item | string | - |
| styles | style | { horizontalScrollBar?: React.CSSProperties; horizontalScrollBarThumb?: React.CSSProperties; verticalScrollBar?: React.CSSProperties; verticalScrollBarThumb?: React.CSSProperties; } | - |
children provides additional props argument to support IE 11 scroll shaking.
It will set style to visibility: hidden when measuring. You can ignore this if no requirement on IE.
react-virtualized is a popular library for efficiently rendering large lists and tabular data. It offers a wide range of components for different use cases, such as grids and tables, in addition to lists. Compared to @rc-component/virtual-list, react-virtualized provides more components and customization options but may have a steeper learning curve.
react-window is a lightweight library for rendering large lists and tabular data. It is similar to react-virtualized but focuses on simplicity and performance. It offers a smaller API surface and is easier to use for basic use cases compared to @rc-component/virtual-list, which might offer more specific features for virtual lists.
react-infinite-scroller is a library that provides infinite scrolling capabilities for React components. It is less focused on virtualized rendering and more on loading additional data as the user scrolls. It can be used in conjunction with virtual list components like @rc-component/virtual-list to handle dynamic data loading.
FAQs
React Virtual List Component
The npm package @rc-component/virtual-list receives a total of 579,956 weekly downloads. As such, @rc-component/virtual-list popularity was classified as popular.
We found that @rc-component/virtual-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.