Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-select-virtualized
Advanced tools
Select virtualized component using: react-select v4 + react-virtualized + react hooks
react-select v5 + react-virtualized + react hooks!
This project came up after hours of trying to find an autocomplete component that supports large sets of data to be displayed and searched for while maintain performance. The only libraries out there that allow this functionality are either not maintained anymore, use outdated libraries or are poorly performant.
I created a component that uses the Airbnb library called react-virtualized
for the virtual data loading of elements and plugged it to the react-select
(the most used autocomplete library for react) menu list.
yarn add react-select-virtualized
{
"react",
"react-dom",
"react-virtualized",
"react-select"
}
You can check the full library documentation here!!!!.
The select component will be the same from react-select v5
so you will be able to use it with any select you already have.
Check Storybook for more examples
const options = [
{
value: 1,
label: `guiyep`,
},
...
];
const opsGroup = [
{ label: `Group Name Header`, options },
...
]
import React from 'react';
import Select from 'react-select-virtualized';
const Example1 = () => <Select options={options} />;
import React from 'react';
import Select from 'react-select-virtualized';
const Example1 = () => <Select options={opsGroup} grouped />;
FAQs
Select virtualized component using: react-select v4 + react-virtualized + react hooks
We found that react-select-virtualized demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.