JSFiddle - React, Tailwind, and code Playground
by Joe Saad
JavaScript
setId(cat) {
return cat ? cat.toLowerCase().replace(/\s/g,'-').replace(/['&;:']/g,'') : '';
}
by Joe Saad
setId(cat) {
return cat ? cat.toLowerCase().replace(/\s/g,'-').replace(/['&;:']/g,'') : '';
}