Pratik chauhan
Pratik chauhan
KPCKevin Powell - Community
Created by Pratik chauhan on 7/20/2023 in #front-end
Prettier is removing space between two jsx elements
how i should configure prettier to have a space between two jsx elements:
Output while saving with prettier
<h1>Lorem Ispum</h1>
<h1>Lorem Ispum</h1>

Output while saving with prettier
<h1>Lorem Ispum</h1>
<h1>Lorem Ispum</h1>

Expected Output while saving with prettier
<h1>Lorem Ispum</h1>

// space
<h1>Lorem Ispum</h1>

Expected Output while saving with prettier
<h1>Lorem Ispum</h1>

// space
<h1>Lorem Ispum</h1>

8 replies