I'm pretty sure that you can search just by adding a "space" to the search input. To avoid this kind of behavior, the best thing to do is to trim() the input value. Also, I guess that you want to validate it before allowing users to submit the search.
|
onChange={(e) => setBusca(e.target.value)} |
I'm pretty sure that you can search just by adding a "space" to the search input. To avoid this kind of behavior, the best thing to do is to
trim()the input value. Also, I guess that you want to validate it before allowing users to submit the search.4noobs-web/src/pages/Cursos.jsx
Line 40 in d34991d