This is something that comes up a lot in the #beginners channel. After
seeing Cmd.none and Sub.none people instinctively reach for Html.none for
conditionally rendered parts of the view and are surprised when it doesn't
exist.
Using `text ""` is a great practical solution but Html.none is
Evan pointed out on Elm Dev that this is functionality is already available:
none = text ""
but I don't think that solution is very obvious, and agree that adding none
to the library would be nice.
On Wed, Aug 31, 2016 at 4:02 PM, Mark Hamburg wrote:
> Html.none would
Html.none would produce a virtual DOM node but that node would not produce
anything in the actual DOM. It's usage is an alternative to list concatenation
and empty divs. For example:
div []
[ headerView model,
, model.error |> Maybe.map errorBoxView |> Maybe.withDefault Html.none
,