Jsx support/documentation.
Closed this issue · 3 comments
robin-anil commented
Based on the code I see partial support for jsx extension. However the configuration is not documented and jsx formatting breaks on simple cases for eg:
render: function() {
if (!this.state.someMethod) {
return (
<div className="first">
<Component1 />
</div>
);
} else {
return (
<div className="second">
<NavBar/>
<Component2 />
</div>
);
}
},
maksimr commented
@r-tock put to .editorconfig
[**.jsx]
e4x = true
robin-anil commented
That works!. The bug still stands, would be nice to update the README with jsx support.
robin-anil commented
Looks like you did already! Sweet!