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
React and HTML handle a bit differently when text nodes and the next element have a line break between them. HTML may add an extra whitespace. It even seems prettier also accounts for this since it also adds whitespaces sometimes when reformatting.
This allows for small possible layout differences between the original HTML and the generated JSX. For an "accurate" conversion, {" "}s or s should be added on some cases.
The text was updated successfully, but these errors were encountered:
facebook/react#1643
React and HTML handle a bit differently when text nodes and the next element have a line break between them. HTML may add an extra whitespace. It even seems prettier also accounts for this since it also adds whitespaces sometimes when reformatting.
This allows for small possible layout differences between the original HTML and the generated JSX. For an "accurate" conversion,
{" "}
s or
s should be added on some cases.The text was updated successfully, but these errors were encountered: