MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / slug

Function slug

src/components/common/SearchDialog.jsx:92–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 const handleSelect = useCallback(
91 result => {
92 const slug = str => str.replace(/\s+/g, '-').toLowerCase();
93 navigate(`/${slug(result.categoryName)}/${slug(result.componentName)}`);
94 setInputValue('');
95 setSearchValue('');

Callers 1

SearchDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected