Bug: JSX string interpolation throws erroneous error on hydrateRoot
#25959
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
hydrateRoot
seems to have issues with jsx string interpolation.hydrateRoot
seems to see the the inline string as separate on the client and can't match the unbroken string rendered by the server.React version: 18.2.0
Steps To Reproduce
This is the simplest example I could muster, obviously I would not normally write JSX in this fashion but it illustrates the issue.
HTML:
JS:
Link to code example:
https://codepen.io/Dickie81/pen/xxJVwmp
The current behavior
Throws error. Re-renders dom.
The expected behavior
hydrates without complaint
The text was updated successfully, but these errors were encountered: