JS Party: JavaScript, CSS, Web Development cover image

This is going to be Lit 🔥

JS Party: JavaScript, CSS, Web Development

00:00

How to Build a Reactive Elements Class

We try to structure our libraries so everything is opt in. So if you want the query decorator, you got to import that from another module. We have app property, to declare a property at state. Kind of gives you internal reactive state. There's a few things with adding event options to event listener methods or querying the shadow root. Some other stuff that people aren't too aware of often when they start building their own class.

Play episode from 24:18
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app