You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that renaming an JSX element doesn't rename the end tag. I also expect renaming an intrinsic element would be local, when in fact, it renames all elements of that type and even the interface member of JSX.IntrinsicElements. Renaming intrinsic elements is quite destructive for a project.
The text was updated successfully, but these errors were encountered:
I just noticed that renaming an JSX element doesn't rename the end tag
Ouch, definitely a bug
I also expect renaming an intrinsic element would be local
I think the more likely fix is that we would disallow this the same way we disallow renaming things in lib.d.ts. Rename always means 'rename', not 'change to some other thing' -- switching a div to a span or what not should be a different operation.
I just noticed that renaming an JSX element doesn't rename the end tag. I also expect renaming an intrinsic element would be local, when in fact, it renames all elements of that type and even the interface member of
JSX.IntrinsicElements
. Renaming intrinsic elements is quite destructive for a project.The text was updated successfully, but these errors were encountered: