Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 804B

title: JavaScript déclaratif

When JavaScript is used to handle user interactions like clicks, or enhance the page by manipulating the DOM, traditionally you’d have JavaScript find that HTML element in your page, and hook some code into it. But what if you’d switch that around, and have the HTML element “tell” JavaScript what function to execute?

*Progressive enhancement with handlers and enhancers* (cache)

Je trouve cette approche intéressante, au moins conceptuellement. Il faudrait que je l’essaye ici pour mettre en place Layzr.js et voir quels effets de bord cela produit.