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
return (
<div className="break-tag-example">
one line
<br/>
another line
</div>
);
return (
<div className="break-tag-example">
one line<br/>
another line
</div>
);
Both of these are flagged for ambiguous spacing by jsx-child-element-spacing. But it seems in both cases the intent is clear and both would render as expected in the browser. I wonder if there could be some exception made for <br/> tags?
The text was updated successfully, but these errors were encountered:
@ljharb I've opened PR #2989 which simply removes BR from the set of inline elements, because I don't think there's any case where whitespace around a br tag would result in a different result rendered in the browser. Can you have a look?
A couple examples:
Both of these are flagged for ambiguous spacing by jsx-child-element-spacing. But it seems in both cases the intent is clear and both would render as expected in the browser. I wonder if there could be some exception made for
<br/>
tags?The text was updated successfully, but these errors were encountered: