atomgomba / hurok

Yet another UDF loop implementation for KMP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hurok

This is a framework library for developing applications on the JVM based on the unidirectional dataflow model.

flowchart LR
    A[First State] -->|Input| B{Action} -->|Mutate| C(Model) --> D[Renderer] -->|Derive| E[Next State] -.->|Input| B
    B -->|Trigger| F([Effect]) --> B 

Parts

Name Description
Model Holds data for business logic
State UI state derived from the Model
Renderer Uses the Model to create State
Action Mutates the Model and can trigger (any) Effect
Effect Does background work and triggers (any) Action
Loop Renders Model into State and executes Action and Effect

Example code

For code samples please see Othello for Android.

About

Yet another UDF loop implementation for KMP

License:Apache License 2.0


Languages

Language:Kotlin 100.0%