Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@
"url": "git://github.com/alexmingoia/purescript-pux.git"
},
"dependencies": {
"purescript-aff": "^5.0.0",
"purescript-aff": "^5.1.1",
"purescript-effect": "^2.0.0",
"purescript-lists": "^5.0.0",
"purescript-signal": "^10.1.0",
"purescript-ordered-collections": "^1.0.0",
"purescript-ordered-collections": "^1.6.1",
"purescript-functions": "^4.0.0",
"purescript-profunctor": "^4.0.0",
"purescript-react": "^6.0.0",
"purescript-react": "^7.0.0",
"purescript-globals": "^4.0.0",
"purescript-web-html": "^1.0.0",
"purescript-web-uievents": "^1.0.0",
"purescript-smolder": "^11.0.0",
"purescript-web-html": "^2.2.0",
"purescript-web-uievents": "^2.0.0",
"purescript-smolder": "^12.3.0",
"purescript-css": "^4.0.0"
},
"devDependencies": {
"purescript-affjax": "^6.0.0",
"purescript-argonaut": "^4.0.1",
"purescript-test-unit": "^14.0.0"
"purescript-affjax": "^9.0.0",
"purescript-argonaut": "6.0.0",
"purescript-test-unit": "^15.0.0"
}
}
2 changes: 2 additions & 0 deletions src/Pux/Renderer/React.purs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ renderItem input (Element _ n c a e r) =
in state \s -> Tuple r $ snoc s el
renderItem input (Content t r) =
state \s -> Tuple r $ snoc s $ reactText t
renderItem input (Doctype t r) = pure r
renderItem input (Empty r) = pure r

renderNodes :: ∀ e. (e -> ReactAttribute) -> Markup e -> Array ReactElement
Expand All @@ -125,6 +126,7 @@ renderAttrs input attrs handlers = Object.fromFoldable tuples
tuples = map toTupleA attrs <> map toTupleH handlers
toTupleH (EventHandler key value) = Tuple key (input value)
toTupleA (Attr key value) = Tuple key (reactAttr value)
toTupleA (SafeAttr key value) = Tuple key (reactAttr value)

hook :: ∀ a. Channel (List a) -> (a -> Effect Unit)
hook input = \a -> do
Expand Down