-
Notifications
You must be signed in to change notification settings - Fork 40
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
Difference between this and purescript-react? #134
Comments
Hi @Eugleo, welcome to PS! I'm not sure what you mean by
If you go the If you're starting from scratch, I recommend Regarding your last question about custom components, |
Hey, I'm a total PS newbie, so I'm kinda lost in all of the purescript react options. There are the following libraries:
purescript-react
purescript-react-basic-classic
purescript-react-basic-hooks
There's mutiple comparison points between them, and I'm unsure in all of those points. Here I list my presumptions. Could somebody experienced with this library (-ies) shine some light on this and provide some proper comparisons?
Power
purescript-simple
is just a base library for the-classic
and-hooks
implementations. It doesn't do anything by itself.All of the rest are equivalent in 'power' — all are standalone React libraries that you can use to use external React components or write your own (in purescript). Not sure if you can write your own hooks with the
-hooks
lib.Types
AFAIK
purescript-react
doesn't have typed props and elements (i.e. you can pass ahref
attribute to adiv
), not sure ifreact-basic-X
is different.Biggest issues
Why are the libraries struggling with?
purescript-react
seems to want to implement hooks (for a few years now), and lack of typed props also seems like a problem (at least to me), whilepurescript-simple
's current biggest ambition seems to be adding proper documentation.The implementations of
purescript-simple
seem to be documented, but rather sparsely (relying probably on the React docs) and don't have (m)any examples. Not sure if those libraries are feature-complete, at least when it comes to the common React use-cases, but it seems like it. The docs would then be the biggest problem.Custom components
When it comes to creating custom components (i.e. not being limited to the default html ones) I think you can do this in all three, but
purescript-react
andpurescript-react-basic-classic
presumably generate class-based ones, andpurescript-react-basic-hooks
function-based ones. Not sure if that affects anything besides the generated JS (which shouldn't matter in 99% cases).The text was updated successfully, but these errors were encountered: