Skip to main content Accessibility Feedback

Can I add stated-based UI to a Web Component?

Continuing my series of videos on Web Components, this week, I converted the tic-tac-toe app I built last week to use state-based UI under-the-hood.

Frankly, I’m not convinced this is actually better or easier than manual DOM manipulation.

There does come a point where managing the UI this way is simpler, but for me, that’s usually when lots of separate UI components are all updating themselves based on a shared piece of data.

If there’s something you’d like me to build in the future, let me know!