使用babel-standalone来在线编译ES6代码,但是遇到如下错误:
Unexpected token <
原因是ES6中使用了ReactJS,需要在编译预设置选项(presets)中添加react,记录下。