Socket
Socket
Sign inDemoInstall

react-search-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-search-autocomplete - npm Package Compare versions

Comparing version 5.2.2 to 5.3.2

2

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.2.2",
"version": "5.3.2",
"description": "A search box for React",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

@@ -105,2 +105,7 @@ ![travis](https://travis-ci.com/sickdyd/react-search-autocomplete.svg?branch=master)

const formatResult = (item) => {
return item;
// return (<p dangerouslySetInnerHTML={{__html: '<strong>'+item+'</strong>'}}></p>); //To format result as html
}
return (

@@ -117,2 +122,3 @@ <div className="App">

autoFocus
formatResult={formatResult}
/>

@@ -244,2 +250,4 @@ </div>

// }
formatResult,
// The callback function is used to format the results.
}

@@ -246,0 +254,0 @@ ```

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