miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Html

Description

Example usage:

import Miso
import Miso.String

data IntAction = Add | Subtract

counterView :: Int -> View IntAction
counterView n = div_
 [ class_ "main" ]
 [ btn_ [ onClick Add ] [ text_ "+" ]
 , text_ (ms n)
 , btn_ [ onClick Subtract ] [ text_ "-" ]
 ]

More information on how to use miso is available on GitHub

http://github.com/dmjio/miso

Synopsis

Elements

Events

Render