Skip to content

Switch to purescript-react-basic? #47

@kurtmilam

Description

@kurtmilam

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:

  1. *opacity variants are Ints, but should be either Strings or Numbers. These properties are almost useless as Ints, since they should accept all values in the "range 0.0 (fully transparent) to 1.0 (fully opaque)".
  2. 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 Strings 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions