Skip to content

matthunz/view-monad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view-monad

An experimental declarative UI framework for Haskell inspired by React.

app :: (Monad m) => Html m
app = component_ $ do
  (count, setCount) <- useState (0 :: Int)

  return $
    div_
      []
      [ text_ $ "Useful files: " ++ show count,
        button_ [on_ "click" $ setCount (count + 1)] [text_ "Clone repo!"],
        button_ [on_ "click" $ setCount (count - 1)] [text_ "Download meme!"]
      ]

The plan is to eventually integrate this as a virtual dom for Tauri via conduct. Native UI should also be possible with Blitz or Masonry.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages