Closed davesnx closed 2 months ago
I think this can be implement on ppx level w/o any [@JSX]
attributes attached to the string literals — just need to wrap string literals which are immediate children of JSX elements.
Agreed, I've relayed this to Dave privately and I'm working on a PoC to showcase this.
We could tag strings with the JSX attribute and run it thought a "Reason.text" or similar application where ppxes can override it. Useful to remove
React.string
orJsx.text
when is aPexp_constant (Pconst_string _)
Same as we do for the fragments, where we tag lists.