Home

Awesome

Learning Lit.js License: MIT

Just one of the things I'm learning. https://github.com/hchiam/learning

https://lit.dev

https://lit.dev/docs/getting-started

https://lit.dev/tutorial

https://lit.dev/playground

npm i lit

or with yarn:

yarn add lit

Then to quickly serve the example, install parcel globally (so not specifically for this project):

npm install -g parcel-bundler
# or:
yarn global add parcel

Then to run the demo example in this GitHub repo:

npm run start
# or just:
yarn dev

To get the demo to work, I also needed to run yarn add @babel/plugin-proposal-decorators and add the .babelrc file.

Another tutorial

https://blog.openreplay.com/build-a-lightweight-web-component-with-lit-js

git clone https://github.com/lit/lit-element-starter-js.git
cd lit-element-starter-js
npm i
npm run serve