6 ms·
I'm only a bystander, but I believe PureScript doesn't include data-to-DOM binding. If you want to do it manually, I would look at the Eff monad[1]. It sounds
by alex_berg 12y ago
I'm only a bystander, but I believe PureScript doesn't include data-to-DOM binding. If you want to do it manually, I would look at the Eff monad[1].
It sounds like there are adapters to few popular frameworks, like React [2] and Angular [3].
[1] https://leanpub.com/purescript/read#leanpub-auto-the-eff-monad https://leanpub.com/purescript/read#leanpub-auto-the-eff-mon...
[2] https://github.com/purescript-contrib/purescript-react https://github.com/purescript-contrib/purescript-react
[3] https://github.com/purescript-contrib/purescript-angular https://github.com/purescript-contrib/purescript-angular
I'm guessing a JS-controlled framework, like React or Mithril, would be a better fit if you choose to use PureScript as a core piece of your app, as they are function-based, like PureScript.
- jp_rider 12y agoInteresting. For my current project, I don't want to include large frameworks so it looks like this library [1] should do the trick. [1] https://github.com/aktowns/purescript-simple-dom https://github.com/aktowns/purescript-simple-dom