jsformat-atom icon indicating copy to clipboard operation
jsformat-atom copied to clipboard

Reactjs jsx bug

Open brianvoe opened this issue 10 years ago • 3 comments

Reactjs uses jsx and jsx has what looks like html inside the javascript code so when the jsformat package autoformats it doesnt deal with the jsx properly.If its possible to ignore formatting within the return that would be great!!! Here is an example.

var DateFields = React.createClass({
    render: function () {
        return (
            <div>
                <input type="hidden" name={this.props.name} value={this.state.value}/>
            </div>
        );
    }
});

brianvoe avatar Aug 27 '15 16:08 brianvoe

@brianvoe feel free to submit a PR, but that may cause issues. I haven't used React before so you'll have to experiment locally a little.

ilanbiala avatar Aug 27 '15 19:08 ilanbiala

@ilanbiala have you received any pr's for this yet?

carlospliego avatar Jun 24 '16 04:06 carlospliego

No, feel free to send one over.

ilanbiala avatar Jun 24 '16 06:06 ilanbiala