Skip to content

Commit

Permalink
Static docs: Live views for re-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
barneycarroll authored Aug 26, 2024
1 parent 275ec2e commit 8c49171
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ m.mount(document.body, {
m(Nav),

m(Header,
m(Live, m('h1', title)),
m(Live, () => m('h1', title)),
),

m(PageLayout,
Expand All @@ -171,6 +171,8 @@ m.mount(document.body, {
})
```
`Live` components must be provided view function inputs in order to re-interpolate scoped expressions.
### Liminal
`Liminal` is an effects component which applies CSS classes to the underlying DOM to reflect lifecycle, listens for any CSS transitions or animations triggered by the application of these classes, and defers removal until these effects have resolved. The component accepts any of the attributes `{base, entry, exit, absent, present}` to determine what classes to apply, and an optional `blocking` attribute which if true, ensures that entry effects complete before exit effects are triggered; the class properties can be space-separated strings containing multiple classes. `Liminal` must have a singular element child.
Expand Down

0 comments on commit 8c49171

Please sign in to comment.