Great video as always 😉 Just wondering if we may directly pass the parent state searchValue and related setter to the SearchBar component. This way the parent holds the state and related logic, and SearchBar does not need its own state. Thanks again for your videos and keep up the good work 🙏
It's not cheating. This is how it is done in all real projects. Client side sorting is useless when you have lots of data so nobody loads all data on the client and sorts it there.
WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - ua-cam.com/video/yQHr4opz_N0/v-deo.htmlsi=51b2XP_84GH3q6oF
Your are doing very good work.
love from Bangladesh ....🙂🙂🙂
Thank you!
Thanks for this video, I've requested it few weeks ago.💚
No problem 😊
hello is there any way to apply the sort on every column when we don't use an api simply when we are working on frontend thanks
Instead of API call you just need to sort your data on the client with array sort of something similar
I have a problem. search bar dosn't let me type
Thanks for this video. which editor how you using?? it is confusing to watch tutorials on.
It's Vim
Great video as always 😉
Just wondering if we may directly pass the parent state searchValue and related setter to the SearchBar component. This way the parent holds the state and related logic, and SearchBar does not need its own state.
Thanks again for your videos and keep up the good work 🙏
Sure you can. Do what is comfortable for you.
Почему вы не сохраняете параметры фильтров в урле? Можно подробнее узнать, когда их сохранять, а когда не нужно
muchas gracias :D
Thank you!
Better to use .filter function rather than API directly, more fluid and more reactive
No it's not better. If you have 100k data on backend you don't want to load them at once on the client and filter. It is extremely slow.
using json-db is cheating. in real life you won't be able to use it. I wanted to see client-side sorting.
It's not cheating. This is how it is done in all real projects. Client side sorting is useless when you have lots of data so nobody loads all data on the client and sorts it there.