When I comment out (M-x comment-dwim
) some section of JSX code with the new js-mode
in Emacs 27, it gives:
// <Grid rows={rows} columns={columns}>
// <Table />
// <TableHeaderRow />
// </Grid>
Is there any way to make js-mode
behave like it does with rjsx-mode
:
{/* <Grid rows={rows} columns={columns}> */}
{/* <Table /> */}
{/* <TableHeaderRow /> */}
{/* </Grid> */}
Supposing that this is not currently possible, and that js-mode
is really the way to go forward for JS/JSX code (from the older rjsx-mode
and js2-mode
, as I vaguely understand), where would I go to study the code and possibly suggest a pull request to make it work?