Closed
Description
React version: 18
Steps To Reproduce
- Clone https://github.com/Avansai/next-multilingual
- run:
npm install
- run:
npm build
- run:
npm run start-example
- Go to the following URL: http://localhost:3000/en-us/tests/jsx-injection
- Right-click on "simple link" (first sentence) and look at the HTML code - there are no HTML comment tags
- Kill the app, and update the
react
andreact-dom
package to version 18.0 - Re-run steps 2 to 5
- Right-click on "simple link" (first sentence) and look at the HTML code - there are empty HTML comment tags
Link to code example:
https://github.com/Avansai/next-multilingual
The current behavior
When injecting JSX element in localizable text, there are now empty HTML comment tags - this is new with React 18:
The expected behavior
I would expect that there are no empty HTML comment tags:
I tried to look in the release notes, and was wondering if this commit might be related?