Closed davesnx closed 2 years ago
This was discussed briefly here. In short, the problem is that it would only work for Html
, not Svg
or any other namespace we, or third-parties, might choose to implement in the future. Unless there's some way to "escape" the hard-coding.
Sure, just wanted to open an issue (it should have been a Discussion) to talk more about it. The last time I read something about it was on the PR related to the PPX https://github.com/ml-in-barcelona/jsoo-react/pull/128#issuecomment-1024908940
I tend to believe that the reason version of this library should be 1to1 with reason-react just for the sole purpose of migrating from one to the other, this is a tiny difference thought.
I saw you mention a few places, why wouldn't work for SVG?
Nevermind, I will close this issue and open a Discussion instead
Right now you need to open
React.Dom.Dsl.Html
when using Reason, which I believe we could avoid it (and have a similar experience as BuckleScript) and transform div calls intoReact.Dom.Dsl.Html.div
automatically by the PPX.