alexmingoia / purescript-pux

Build type-safe web apps with PureScript.
https://www.purescript-pux.org
Other
566 stars 76 forks source link

Fix react-interop examples #128

Closed sa1 closed 7 years ago

sa1 commented 7 years ago

Invert the order of arguments passed to reactClass.

renderToReact already returns a value wrapped in Eff, pure isn't needed. Also, State should be there in the type signature.

ThomasCrevoisier commented 7 years ago

\o/ Thanks @sa1, I was about to make the PR but you were quicker :)