Taught some web components today, and thought I’d share the @CodePen I used: shows basics of setting up a shadow root from an HTML template, listening for attribute changes, and updating shadow element based on those changes, plus some extras! codepen.io/Snugug/pen/MWVOzER

  • 10
  • 63
  1. @CodePen More teaching today, this time state management basics w/a ~20 line, 0 dep basic state manager driving web components. While we can argue about DX, The Platform™️ can handle componentized state-based web apps just fine for many (most?) usecases on its own

    codepen.io/Snugug/pen/MWVGbRb

    • 0
    • 1