-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Switch to purescript-react-basic? #47
Comments
Yeah that makes perfect sense. I've been meaning to swap out the libraries for a while myself. It shouldn't be a lot of work at all. If you'd like to get started on it, I can give you some pointers - The piece that does most of the work is a 15 line function The rest of the files are functions that help you write widgets that target the react backend.
That should be it! Let me know if you have any questions! |
Unfortunately, it seems I have bitten off more than I can chew. I have been poking at this rewrite off and on the past couple of weeks and don't know that I'm really any closer to getting it working than when I first started, although I do feel that I'm getting a better handle on the I'm still stuck trying to get Any tips you have would be appreciated. |
Do you have a repository with existing code I can look at? |
I do. I'm embarrassed to share it. It's in some Frankenstein state of me just trying to get types to line up, but here is where I currently am: https://github.com/kurtmilam/purescript-concur-react/tree/use-purescript-react-basic Edit: See I also just realized that my latest set of changes was completely wrong (trying to turn I just pushed a couple of commits to the branch that do away with the unnecessary(?) |
Hey, I've been a bit busy the past month. I'll get around to it soon. Meanwhile it's open if anyone else wants to take a look. |
Closing this in favor of the umbrella issue. |
purescript-react-basic
seems to get some things right thatpurescript-react
doesn't.For instance, some of the props defined in
purescript-react
have types that make them either useless or less useful than they would be with more suitable types.Examples of poorly typed props in
purescript-react
:Ints
, but should be eitherStrings
orNumbers
. These properties are almost useless asInt
s, since they should accept all values in the "range 0.0 (fully transparent) to 1.0 (fully opaque)".I understand these warts are outside of concur-react. It would be nice to use a react library that's well thought out.
purescript-react-basic
usesString
s for the props I mentioned above, and it supports many more props thanpurescript-react
(e.g.transform
, which I need).Also,
purescript-react-basic
seems to be much more actively developed, and is under thelumihq
organization, as opposed to being maintained by a single dev.I don't have a handle on how much work would be required to swap out the underlying react library, or whether it would necessitate breaking changes, but I would contribute to that effort if you're interested.
The text was updated successfully, but these errors were encountered: