Рет қаралды 12,331
Follow along as Lit Software Engineer Elliott Marquez shares the pros, cons, and use cases of communicating with events. Learn how a web component can communicate in any type of environment with the Mediator Method and more in this advanced Lit University episode!
Resources
Lit documentation site → goo.gle/Lit-devsite
Learn more about events → goo.gle/3xvNIXE
Extended reading
WCCG Context API → goo.gle/3ry2nO0
Shadow DOM Event Visualization → goo.gle/3KWnotp
Code samples
Trom-bone → goo.gle/3vLZN8o
Gist → goo.gle/3koeE3K
Listening to events playground link→ goo.gle/3KyWd74
Dispatching events/Mediator Method playground link→ goo.gle/3vShLGC
State Management and Lit
MobX → goo.gle/3jNhoaL
Apollo GraphQL → goo.gle/3McDIGL
Redux → goo.gle/3MWKv87
Chapters
0:00 - Introduction
1:02 - Why events?
2:33 - Parent child
4:30 - Siblings and the Mediator Method
7:45 - Pros and cons
9:12 - Wrap up
Have any lingering questions? Tweet at us with the hashtag AskLitDev or join the Lit & Friends Discord!
Join the community → goo.gle/Lit-Community
Twitter → goo.gle/Lit-Twitter
Discord → goo.gle/Lit-Discord
Watch more Lit University → goo.gle/LitUniversity
Subscribe to never miss a video on Lit → goo.gle/Lit
#Lit #WebComponents #WebDevelopment