Closed tarka closed 6 years ago
I've noted the comment about indentation bugs, however I'm seeing a behaviour in rjsx-mode that this not present in js2.
In js2-jsx-mode the following code is formatted correctly:
function Example(props) { return ( <ul> { [1,2,3].map(lang => { return( <li key={lang}> {lang} </li> ) }) } </ul> ) }
However, in rjsx-mode it is formatted as:
(note the brace before the </ul>).
</ul>
Versions:
Thanks for reporting (and taking the time to check against js2-jsx)! This was in fact a bug in rjsx. Fix will be up on Melpa soon
js2-jsx
rjsx
I've noted the comment about indentation bugs, however I'm seeing a behaviour in rjsx-mode that this not present in js2.
In js2-jsx-mode the following code is formatted correctly:
However, in rjsx-mode it is formatted as:
(note the brace before the
</ul>
).Versions: