【发布时间】:2021-06-18 12:38:45
【问题描述】:
我正在学习一个很棒的 AWS 教程,但我相信 Visual Studio 无法将我的 JSX 返回函数识别为 HTML。其他人有这个问题吗?
VS 希望它看起来如下:
render() {
return ( <
section className = "section auth" >
<
div className = "container" >
<
h1 > Register < /h1> <FormErrors formerrors = { this.state.errors }/ >
<
form onSubmit = { this.handleSubmit } >
<
div className = "field" >
<
p className = "control" >
<
input className = "input"
type = "text"
id = "username"
aria - describedby = "userNameHelp"
placeholder = "Enter username"
value = { this.state.username }
onChange = { this.onInputChange }
/> < /
【问题讨论】:
标签: html reactjs visual-studio jsx