From Lit

From Lit

For developers who know Lit. Each page takes a topic from Lit's documentation, in its order, and puts the TypeScript you know next to the F# that does the same thing.

Firelight binds Lit itself, so the runtime is the same: the same LitElement, the same update cycle, the same template syntax. What changes is the language around it. These are the differences you meet on every page:

Each pair of code blocks, Lit's TypeScript and Firelight's F#, does exactly the same thing. The TypeScript uses Lit's decorators with experimentalDecorators: true and useDefineForClassFields: false, the settings Lit's own examples assume. Each page ends with what doesn't carry over directly, and with the Lit features Firelight doesn't bind yet.

Topics

Beyond these pages

Some of Lit's documentation needs no F# version, or has none yet: