我正在为我的节点后端做一个反应前端。当前,前端不向服务器发出请求,但是就像外壳一样。它给了我这个错误,只有从我比较过的一个文件开始。这是引发错误的文件的代码:
git clone https://github.com/Sharcoux/redux.git
cd redux
yarn install
npx react-native run-android
这是错误:
import React, { Component } from 'react';
import ReactDom, {render} from 'react-dom';
import logo from './logo.svg';
import './App.css';
export default class Access extends Component {
render() {
try {
return (
<div className="App"> //Error on this line
<div className={'container'}>
<div id={'add'}>
<h3>ADD</h3>
<input placeholder={'Name of task'}/> <p> or <br/></p>
<input placeholder={'ID of task'}/><p>*</p>
<p>*: Please only enter ONE of the above options</p>
</div>
<div id={'delete'}>
<h3>DELETE</h3>
<input placeholder={'Name of task'}/> <p> or <br/></p>
<input placeholder={'ID of task'}/><p>*</p> <p> Please confirm your choice by typing the
task's
name in the following input box.</p>
<input placeholder={'Name of task'}/>
<p>*: Please only enter ONE of the above options</p>
</div>
<div id={'Query'}>
<h3>By Task</h3>
<input placeholder={'Task'}/>
<h3>By Status</h3>
<input placeholder={'Task'}/>
<h3>My List</h3>
<input placeholder={'Username'}/>
</div>
</div>
</div>
)
}catch (err){
throw(err);
}
}
}