New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate using purescript-react #29
Comments
CC @spicydonuts… |
I'm not very familiar with How does this relate to the helper functions for converting to/from regular React components? Would it make sense for Pux to continue using a custom implementation for simplicity/speed while also adding helpers for converting to and from |
Not sure if this is what you were asking about @spicydonuts, apologies if this is all redundant stuff you already know The Pux |
I'm planning to dive in this weekend sorry for silence! |
I'm planning on releasing an update that changes |
The TL;DR is you're delegating more to foreign JS and don't need its abstractions at the level you're interoperating? |
@alexmingoia Sounds great! It may still be worth continuing to explore building off of |
Pux v4.0.0 changes |
@AppShipIt and @paf31 have asked why Pux isn't built ontop of purescript-react. The reason is that no functions from purescript-react are exposed in the Pux API. For example,
Attribute a
is used instead ofProps
, orHtml a
instead ofReactElement
. When I wrote Pux, it was faster and less code to haveHtml a
be a foreign data type corresponding directly toReact.createElement
.Advantages
Disadvantages
Performance
One concern is that if
Html a
translates to purescript-react'sReactElement
, that adds an extra layer of function calls in the render method. The only place where performance is a real concern is the render method, because it blocks the application. Function calls have very little overhead but it's still a concern. Renders should be as lightweight as possible.Thoughts?
The text was updated successfully, but these errors were encountered: