Tyrian
tyrian.Tyrian
object Tyrian
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Tyrian.type
Members list
Type members
Types
Value members
Concrete methods
Directly starts the app. Computes the initial state of the given application, renders it on the given DOM element, and listens to user actions
Directly starts the app. Computes the initial state of the given application, renders it on the given DOM element, and listens to user actions
Type parameters
- F
-
The effect type to use, e.g.
IO
- Model
-
Type of model
- Msg
-
Type of messages
Value parameters
- init
-
initial state
- node
-
the DOM element to mount the app to
- runner
-
the function that runs the program. Has a type of
F[Option[Msg]] => (Either[Throwable, Option[Msg]] => Unit) => Unit
, essentially:task.unsafeRunAsync(callback)
- subscriptions
-
subscriptions function
- update
-
state transition function
- view
-
view function
Attributes
In this article