我上周开始了一个项目.在回到我的团队之前,我想评论我的代码.
/* Just for the Syntax outlook */
class Foo extends React.Components {
constructor(props) {
super(props);
}
render() {
return (
<div className='bar'>
/*
<p> cannot commit!!!! </p>
** Following will throw error when bundled with webpack
*/
// This throws error as well.
<div>
)
}
}Run Code Online (Sandbox Code Playgroud)
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>Run Code Online (Sandbox Code Playgroud)
代码可能看起来像评论工作,但目前的JSbin设置没有在ES6上设置.当您使用jsx通过webpack运行捆绑它时会抛出错误.
以下是以下堆栈
顺便说一句,因为Node v6已经出局了,我们还需要使用babel吗?
我已经安装了vundle(git clone)vim vundle软件包管理器。看来我什至无法安装单个插件。我想卸载它,并从vim重新开始。有什么建议么?