React native 反应本机:分析错误:意外标记<;

React native 反应本机:分析错误:意外标记<;,react-native,React Native,我是react本地人,我在Windows7和Exponent上使用Atom GUI 1.12.6在android手机上部署应用程序 这是我的密码 'use strict'; import Exponent from 'exponent'; import React, {Component} from 'react'; import { AppRegistry, Text } from 'react-native'; class App extends Component{ cons

我是react本地人,我在Windows7和Exponent上使用Atom GUI 1.12.6在android手机上部署应用程序 这是我的密码

'use strict';

import Exponent from 'exponent';
import React, {Component} from 'react';

import { AppRegistry, Text } from 'react-native';

class App extends Component{
    constructor(props, context) {
        super(props, context);
        this.state = {
        };
    }

    render(){}
      return (
          <Text>Hello world again!</Text>
      );
   }
}
Exponent.registerRootComponent(App);
获取错误:
在文本控件上的Atom编辑器中,它显示“解析错误:意外标记您的渲染方法中有一个输入错误。”

render(){}
改为:

render() {
    return (
        <Text>Hello world again!</Text>
    );
}
render(){
返回(
再次向世界问好!
);
}

您的渲染方法中有一个输入错误

render(){}
改为:

render() {
    return (
        <Text>Hello world again!</Text>
    );
}
render(){
返回(
再次向世界问好!
);
}

谢谢,现在我可以在手机上部署该应用程序,但在文本控件上的Atom Editor中,它显示“解析错误:意外标记我不熟悉Atom,但您可能使用了错误的Atom语法突出显示,无法识别react..或者eslint配置不好..”。。请参阅并感谢现在我可以在手机中部署该应用程序,但在文本控件上的Atom Editor中显示“解析错误:意外标记我不熟悉Atom,但您可能使用了错误的Atom语法突出显示,无法识别react..或eslint配置不好..请参阅和