This pull request demonstrates how to build an Elm-style event loop in TypeScript, as is used in Derw. The Elm Architecture was implemented by other JavaScript libraries such as Redux. This PR approaches the core loop behind the idea, along with examples on how to limit the API so only valid elements can be created. It also has support for hydration, with an example, and async event handling. There is also a way to subscribe to state changes inside the update loop.
The way to consum…