Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eeue56/replace-elm-virtual-dom


https://github.com/eeue56/replace-elm-virtual-dom

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Define your own main method with Elm

`main` at the moment in Elm is bound to either `VirtualDom` or `Graphics.Element`.

This package implements a solution allows you to get around this limitation by defining a `main'` function like below:

```
main' =
initGraphics
<| Signal.map (\_ -> div [] [ text "hello dave" ]) (Signal.constant 1)
```

This is entirely PoC and not recommended for production use.