node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org ยป

search-list-react

  • preview

preview

How to use

  • install

npm install --save-dev search-list-react style-loader css-loader

  • webpack.config.js
// add loader
{
    test: /\.css$/,
    loader: "style-loader!css-loader"
}
  • import

import SearchList from "search-list-react"

many or one more

  • use
<SearchList
    splitWord=':'
    show={this.state.searchListShow}
    infos={this.state.searchListInfos}
    />
  • params splitWord: 'a:b' & splitWord === ':' => 'a | b' show: show or hidden infos: array with strings