Add suppressHydrationWarning to ReactDOM.domProps#113
Add suppressHydrationWarning to ReactDOM.domProps#113jderochervlk wants to merge 1 commit intorescript-lang:masterfrom
Conversation
tsnobip
left a comment
There was a problem hiding this comment.
this approach looks coherent to me too, but I know some people were complaining that type spreading on large types could have a perf impact on the compiler, is it still the case?
|
I just ran a cycle of clean and build a few times to see if there is a difference, and it takes about the same time either way, around 250-280ms. |
4e37e83 to
4b2fe12
Compare
|
It's been a while, but do we want to merge this in? |
|
Just tested this in a project of ours and it worked fine. There are more React-specific props though: https://react.dev/reference/react-dom/components/common#common-props. Shouldn't we investigate moving more of them from the |
I think doing a larger pass on this would be a good way to go, yeah. |
I have no particular concerns about this. |
Not sure if this a a good approach, but here's my thoughts:
If we want to make JSX not directly connected to React, we should move React specific JSX props out of the compiler and into React. With the type spreading this is easy to do. There are probably others we could move over here to keep JSX props cleaner, but this seems like a good start.
Fixes #102