One of the things I was currently interested in was creating a search bar, however I didn't want to search for things that were already available i...
For further actions, you may consider blocking this person and/or reporting abuse
Thank you for this interesting article!
I found a way to do the same thing but without useEffect() and in a more optimized way because there is no re-rendering needed each time a key is pressed:
This approach also follows the official website's advice to only use the useEffect hook if there is no other way (react.dev/learn/you-might-not-need...).
Great article, I would recommend using debounce instead of setTimeout 🙌
Came here to say the exact same thing.
Thanks Joel! 👊
Thank you! I have to try it! 🤓
I just love the banner photo btw 👌🏼
I love it too 😭
For some reason this helped me wrap my head around custom hooks. Thanks 💯
I am immensely happy to know! ☺️
Hey, it doesn't work on Chrome mobile browser
Does not work? And on the desktop? 🧐
It works on the desktop just fine. Sorry, I was in a hurry so couldn't explain myself better earlier. The API only accepts lowercase slugs so I had to e.target.value.toLowerCase() all slug values for the API to respond to my get requests when I use it on mobile. I was following your tutorial -- here's my netflify build angry-bhaskara-6c8f3a.netlify.app/
Hadn't tested it. Thank you very much for your comment. 👊
Thank you too! Your explanations have made it easier to wrap my head around React hooks.
I'm so glad to know. 😊
Thanks for your comment and tip! 👊
Woooow and Wot ! Noh that’s was very amazing I LOVE It
Thanks for the feedback! 🥺
awesome
Thanks! 🥳
I think debounce can also resolve this issue.
I didn't actually try it, but it makes sense 🤔
Very well explained!!!
I'm glad! Thank you very much! 🤩
Thank you very much! 🥺
What can I do if I want to add a button for the search function