{filteredResults.map((result) => ( <NavLink to={result.replace(/\s+/g, "-").toLowerCase()} key={result} code example
Example: java script converting text to slug
function convertToSlug(Text)
{
return Text
.toLowerCase()
.replace(/ /g,'-')
.replace(/[^\w-]+/g,'')
;
}