rtfeldman/elm-css/12.0.1

NOTE: this package is not compatible with Elm 0.19.1

Html.Styled.Lazy

Drop-in replacement for the Html.Lazy module from the elm-lang/html package.

lazy : (a -> Html msg) -> a -> Html msg

A performance optimization that delays the building of virtual DOM nodes. Calling (view model) will definitely build some virtual DOM, perhaps a lot of it. Calling (lazy view model) delays the call until later. During diffing, we can check to see if model is referentially equal to the previous value used, and if so, we just stop. No need to build up the tree structure and diff it, we know if the input to view is the same, the output must be the same!

lazy2 : (a -> b -> Html msg) -> a -> b -> Html msg

Same as lazy but checks on two arguments.

lazy3 : (a -> b -> c -> Html msg) -> a -> b -> c -> Html msg

Same as lazy but checks on three arguments.