jsx语法错误

./src/index.js
  Line 35:  Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?

  33 |         return (
  34 |             

{ this.props.title }

> 35 |
React is very interesting
| ^ 36 | ) 37 | } 38 | }

jsx必须使用一个元素包裹内容,这里与vue的写法类似

你可能感兴趣的:(jsx语法错误)