CJ Reynolds
CJ is a Software Developer, Educator and Maker. He makes videos for Syntax.fm and streams himself teaching and coding on the Twitch and YouTube channel Coding Garden.
1000 Ways to AutocompleteWatch video: 1000 Ways to Autocomplete
JSNation US 2024
29 min
1000 Ways to Autocomplete
Implementing autocomplete in a web app is actually quite tricky if you want to do it right. A good implementation includes de-bouncing input, loading / error state, aborting requests in flight and more!Solving these problems across various front-end frameworks presents unique problems and interesting solutions.In this talk I will showcase the 1000 (that's 8 in binary 😉) ways I implemented this across React, Solid, Preact, Svelte, Vue, Angular, HTMX and Vanilla JS. I will compare and contrast these solutions, showcase some of the common patterns that emerged and also highlight frameworks that make this easier than others.Attendees of this talk will walk away with new tricks to try in their favorite framework as well as perspective on how things are done in the current front-end framework landscape.