Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-select-fast-filter-options

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-fast-filter-options

react-select filterOptions function optimized to quickly filter large options lists

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
8.3K
increased by8.94%
Maintainers
1
Weekly downloads
 
Created
Source

react-select-fast-filter-options

Fast filterOptions function for react-select; optimized to quickly filter huge options lists.

Getting started

Install react-select-fast-filter-options using npm.

npm install react-select-fast-filter-options --save

ES6, CommonJS, and UMD builds are available with each distribution. For example:

// Make sure to import default styles.
// This only needs to be done once,
// Probably during your application's bootstrapping process.
import 'react-virtualized/styles.css'
import 'react-select/dist/react-select.css'
import 'react-virtualized-select/styles.css'

// Then import the virtualized Select HOC
// This isn't required but it is suggested-
// This way large lists will also display quickly
// For more info see https://github.com/bvaughn/react-virtualized-select
import VirtualizedSelect from 'react-virtualized-select'

// Create a search index optimized to quickly filter options
// This is powered by js-search
// Configuration options available here: https://github.com/bvaughn/js-search
const filterOptions = createFilterOptions({ options })

// Render the windowed react-select (powered by react-virtualized)
// Wired up with the fast filter function
<VirtualizedSelect
  filterOptions={filterOptions}
  options={options}
  {...props}
/>

FAQs

Package last updated on 20 Aug 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc