I am not being able to format JSX properly, I have read in past issues that this was a problem with previous versions, but is not clear for me if this is still an issue or I am just doing something wrong.
// Actual result
import { Row, Col } from 'react-bootstrap';
const Status = props => (
<Row>
<Col md={ 5 }><strong>Status</strong>
<a> // <a> is on the same level as <Col>
<p>
<div> <strong>{ props.test }</strong> </div>
</p>
</a>
</Col>
<Col md={ 2 }><strong>Door</strong></Col>
<Col md={ 5 }><strong>Om</strong></Col>
</Row>
);
// Desired result
import { Row, Col } from 'react-bootstrap';
const Status = props => (
<Row>
<Col md={ 5 }><strong>Status</strong>
<a>
<p>
<div> <strong>{ props.test }</strong> </div>
</p>
</a>
</Col>
<Col md={ 2 }><strong>Door</strong></Col>
<Col md={ 5 }><strong>Om</strong></Col>
</Row>
);
I am using VSCode with react-beautify, with a local formatter:
Hi.
I am not being able to format JSX properly, I have read in past issues that this was a problem with previous versions, but is not clear for me if this is still an issue or I am just doing something wrong.
I am using VSCode with react-beautify, with a local formatter:
My configuration goes:
Thanks!