react-search-autocomplete
Advanced tools
Comparing version 5.2.2 to 5.3.2
@@ -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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
0
256
10244
3