Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labs/context playground examples #1183

Closed
AndrewJakubowicz opened this issue Sep 13, 2023 · 3 comments
Closed

Add labs/context playground examples #1183

AndrewJakubowicz opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels

Comments

@AndrewJakubowicz
Copy link
Contributor

For graduation we want some labs/context playground examples.

@AndrewJakubowicz AndrewJakubowicz changed the title Add las/context playground examples Add labs/context playground examples Sep 13, 2023
@AndrewJakubowicz AndrewJakubowicz self-assigned this Sep 13, 2023
@quincarter
Copy link

quincarter commented Sep 14, 2023

I have a whole article showcasing context. If you'd like to use any of it then please do! I'd appreciate the call out if you do end up using it 😉

https://medium.com/@quincarter/understanding-component-state-and-using-lit-element-context-40981e808535

TLDR there's a codepen at the end with the entire code. But I go into quite a few nested children and really show off the power of passing the context without prop drilling.

I can also try to share an example passing the instance of a class around the tree. It's in a work project but I could make an example.

@AndrewJakubowicz
Copy link
Contributor Author

Thank you for writing that!

@AndrewJakubowicz
Copy link
Contributor Author

Closing this as there is at least 1 example now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants