For example, you can create a custom element that you put around any <input type=submit> or <button> that will make the form submit via ajax and handle the response. Works with any UI. Presentation-agnostic.
THAT Is the kind of re-use that would actually help developers, that we could all agree on a single set of logic to handle all the things that could go wrong when making an AJAX request.
Instead, we keep making yet more React Date Pickers.
https://ruby.social/@davetron5000/113210464405943080