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
Possible regression - it looks like re-creating missing nodes is not working correctly in React 16. The nodes get re-created, but one of them will copy the className from a sibling node, instead of getting re-created with the correct className.
Here's a pen demonstrating the issue. It works just fine in React 15.
JSX:
Rendered HTML:
The text was updated successfully, but these errors were encountered:
React 16 doesn't guarantee that the result will be correct if there is a mismatch. It inserts extra nodes but doesn't patch up the attributes because it would be pretty expensive and negate the performance benefits.
It is expected that you will fix mismatches in development so that the app can be fast in production. We plan to document it more prominently in the future.
Possible regression - it looks like re-creating missing nodes is not working correctly in React 16. The nodes get re-created, but one of them will copy the className from a sibling node, instead of getting re-created with the correct className.
Here's a pen demonstrating the issue. It works just fine in React 15.
JSX:
Rendered HTML:
The text was updated successfully, but these errors were encountered: