Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 612

Article 2

$
0
0

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.
ruby.social/@davetron5000/1132


Viewing all articles
Browse latest Browse all 612