As I see, it's not real time. What happen when you have lots of items, you need request the server to get them, so it will request every time you enter a character. I think you should research a bit about 'debouncing' and ''managing server state"
I don't know about fetching data from server and other server states , Its just a front-end part with Some JSON data I will learn other topics later
You can simulate it using Promise with a setTimeout.
Instead of denounce we can also use onBlur to request server.
onBlur
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As I see, it's not real time.
What happen when you have lots of items, you need request the server to get them, so it will request every time you enter a character.
I think you should research a bit about 'debouncing' and ''managing server state"
I don't know about fetching data from server and other server states , Its just a front-end part with Some JSON data
I will learn other topics later
You can simulate it using Promise with a setTimeout.
Instead of denounce we can also use
onBlur
to request server.