fable-react
fable-react copied to clipboard
JustifyContent should be made type safe just like AlignItems
It seems like a lot of CSSProp
s are typed by an obj
or a string
where they could benefit from more type safety. Is there a reason why they're not typed by a DU, for example?
It's because of Fable.React
is one of the older libraries and at the time, we wanted to have a thin layer on top of React. So using obj
make it easy to do that because the user can write center
, 2px
, calc(100vh - 3em)
, etc.
We are also a small team of core maintainer and can't do all the evolution ourself :)
Because we accepted making some of the properties type-safe, we would accept a PR converting more properties to be type-safe :)