-
Notifications
You must be signed in to change notification settings - Fork 17
Description
purescript-react-basic
seems to get some things right that purescript-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
:
- *opacity variants are
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)". - This is similar but not quite as bad for stroke-width, which should be a string, as it accepts percentages (e.g. "50%") and 'lengths' such as "0.5px".
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
uses String
s for the props I mentioned above, and it supports many more props than purescript-react
(e.g. transform
, which I need).
Also, purescript-react-basic
seems to be much more actively developed, and is under the lumihq
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.