Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function App() {
const [searchText, setSearchText] = useState("");
return (
<div>
<div>
</div>
</div>
);
}
className="btn-close"
aria-label="Close Search"
onClick={closeSearch}
>
✕
{searchText.length > 2 ? (
<>
<h1>
<span aria-label="Magnifying Glass" role="img">
🔍
</span>
Search: <i>{searchText}</i>
</h1>
<div>
{IconsManifest.map(icon => (
))}
</div>
) : (
<h1>Please enter at least 3 characters to search...</h1>
)}
);
}
<input placeholder="Search Icons" value="{searchText}" type="text">
<ul>
<li>
Home
</li>
{IconsManifest.map(icon => (
<li>
{icon.name}
</li>
))}
</ul>
);
}