Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Chris Ferdinandi avatar Chris Ferdinandi

Two-way data binding and reactivity with 15 lines of vanilla JavaScript

  • Nicolas Hoizey
  • 29 September 2023
  • JavaScript
  • 11 reactions
Screenshot of “Two-way data binding and reactivity with 15 lines of vanilla JavaScript”

https://gomakethings.com/two-way-data-binding-and-reactivity-with-15-lines-of-vanilla-javascript/

how to keep two copies of the same form in sync with each other. […] a simple trick that uses JS Proxies and 15 lines of vanilla JS.

Nice!

11 reactions

10 likes

  1. khoi ????‍????☕️ avatar
  2. dan :html_energy: avatar
  3. Jeff avatar
  4. Christophe avatar
  5. Tyler Sticka avatar
  6. Corentin avatar
  7. Sahil ???? avatar
  8. Elly Loel ✨???? avatar
  9. jfroehlich avatar
  10. Tyler Sticka avatar

1 repost

  1. Twidi / Stéphane Angel avatar
  • Older: We're Bringing Responsive Video Back!
  • Newer: Smart Quotes for Smart People

Related contents with similar topics

  1. screenshot of SPAs: theory versus practice

    Nolan Lawson avatar Nolan Lawson

    SPAs: theory versus practice

    • Nicolas Hoizey
    • 18 October 2024
    • SPA, MPA, JavaScript
    • 4 reactions

    An expert developer can stand up on a conference stage and show off the amazing scores for their site (perfect performance! perfect accessibility!…

  2. screenshot of The State of ES5 on the Web

    Philip Walton avatar Philip Walton

    The State of ES5 on the Web

    • Nicolas Hoizey
    • 9 September 2024
    • JavaScript
    • 1 reaction

    So what is the current state of ES5 on the web today? And what are the best practices for web developers when building code for production? TL;DR:…

  3. screenshot of React, Solid, htmx

    Bobae Kang

    React, Solid, htmx

    • Nicolas Hoizey
    • 17 April 2024
    • htmx, React, Solid, JavaScript, HTML
    • 9 reactions

    [HTMX] can get you 80% there with radically less complexity. No extra dependencies, no build step, no advanced tooling (now re-written in Rust!),…

  4. screenshot of JavaScript Visualized - Promise Execution

    Lydia Hallie

    JavaScript Visualized - Promise Execution

    • Nicolas Hoizey
    • 3 April 2024
    • JavaScript
    • 6 reactions

    The cool thing about Promises is that this can trigger an asynchronous action if a handler is attached by either then or catch. Since the handlers…

  5. screenshot of 67 Weird Debugging Tricks Your Browser Doesn't Want You to Know

    Alan Norbauer avatar Alan Norbauer

    67 Weird Debugging Tricks Your Browser Doesn't Want You to Know

    • Nicolas Hoizey
    • 2 April 2024
    • browser, debug, JavaScript, CSS, DOM
    • 3 reactions

    A list of useful, not-obvious hacks to get the most out of your browser’s1 debugger. Assumes an intermediate-level-or-higher understanding of the…

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy