facebookarchive/sublime-react

Extra indenting / whitespaces when auto completing

inooid opened this issue · 0 comments

Every time I make use of the autocompletion for React JSX (Javascript) I seem to get weird indentation errors.

var React = require('react');

var MyComponent = React.createClass({

  // Look at the dots for indentation example:
..componentDidMount: function () {
......console.log('Mounted!')..
..},

  render: function() {
    return (
      <div />
    );
  }

});

module.exports = MyComponent;

The gif I made shows that as well:
Image (GIF)
File size was too large to actually upload it on github.