{-# LANGUAGE OverloadedStrings #-}

module Main (main) where

import qualified Blaze.React.Examples.Clock       as Clock
import qualified Blaze.React.Examples.Todo        as Todo
import           Blaze.React.Examples.TabbedApps  (namedApp, tabbed)
import           Blaze.React.Examples.TimeMachine (withTimeMachine)
import           Blaze.React.Examples.MultiUser   (withMultiUser)
import qualified Blaze.React.Run.ReactJS          as ReactJS


main :: IO ()
main = ReactJS.runApp $
    tabbed 0
      [ namedApp "TodoMVC" Todo.app
      , namedApp "TodoMVC (with TimeMachine™)" $ withTimeMachine Todo.app
      , namedApp "Multi-user TodoMVC" $ withTimeMachine $ withMultiUser Todo.app
      , namedApp "Clock (with TimeMachine™)" $ withTimeMachine Clock.app
      ]

{-# LANGUAGE OverloadedStrings #-}

module Main (main) where

import qualified Blaze.React.Examples.Clock       as Clock
import qualified Blaze.React.Examples.Todo        as Todo
import           Blaze.React.Examples.TabbedApps  (namedApp, tabbed)
import           Blaze.React.Examples.TimeMachine (withTimeMachine)
import           Blaze.React.Examples.MultiUser   (withMultiUser)
import qualified Blaze.React.Run.ReactJS          as ReactJS


main :: IO ()
main = ReactJS.runApp $
    tabbed 0
      [ namedApp "TodoMVC" Todo.app
      , namedApp "TodoMVC (with TimeMachine™)" $ withTimeMachine Todo.app
      , namedApp "Multi-user TodoMVC" $ withTimeMachine $ withMultiUser Todo.app
      , namedApp "Clock" Clock.app
      ]

Remove Clock+TimeMachine from demo app - it's a memory leak
Remove Clock+TimeMachine from demo app - it's a memory leak
