You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find any docs/examples of using lit context with modern JavaScript. All the docs are Typescript. Where can I find JavaScript examples? Thanks.
We haven't gotten around to adding any switchable code samples for those docs but it shouldn't be too difficult to use any of the code there in vanilla JavaScript by removing any type annotations or class member keywords like private.
While decorators can work in JavaScript (they are stage 3 proposal to the language), it will currently require transpilation with something like babel as it's not yet implemented in any JS runtime/browsers.
I couldn't find any docs/examples of using lit context with modern JavaScript. All the docs are Typescript. Where can I find JavaScript examples? Thanks.
https://lit.dev/docs/data/context/
The text was updated successfully, but these errors were encountered: