Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeue56/replace-elm-virtual-dom
https://github.com/eeue56/replace-elm-virtual-dom
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/eeue56/replace-elm-virtual-dom
- Owner: eeue56
- Created: 2015-12-14T19:25:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T22:44:07.000Z (about 9 years ago)
- Last Synced: 2024-05-21T12:33:41.662Z (8 months ago)
- Language: JavaScript
- Size: 448 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.