- 
                Notifications
    
You must be signed in to change notification settings  - Fork 49.7k
 
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
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 
reactandreact-dompackage 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?
igordanchenko, vhpoet, tavoyne, boutterudy, sp4rq-dev and 4 morebrainkim
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug

