在有效代码上反应本机意外令牌错误

时间:2020-03-31 11:58:31

标签: reactjs react-native

我创建了一个新的RN项目。当我尝试运行它时,出现以下错误。

错误:SyntaxError: /home/shashika/PROJECTS/developer-connector/mobile/src/app.tsx: 意外令牌(13:2)

import React from 'react';
import { View, Text } from 'react-native';

const App = () => (
  <View>
   <Text>Developer Connector</Text>
  </View>
);

export default App;

这说明了什么?对我来说,代码似乎合法。

0 个答案:

没有答案