Javascript ';选择';未定义react/jsx no undef
未定义获取错误“Selection”的react/jsx no undefJavascript ';选择';未定义react/jsx no undef,javascript,reactjs,Javascript,Reactjs,未定义获取错误“Selection”的react/jsx no undef import React, { Component } from 'react' import ReactDom from 'react-dom' //import { Selection,Form, Button, FormGroup, FormControl, ControlLabel } from "react-bootstrap"; class index extends Component { ren
import React, { Component } from 'react'
import ReactDom from 'react-dom'
//import { Selection,Form, Button, FormGroup, FormControl, ControlLabel } from "react-bootstrap";
class index extends Component {
render() {
return (
<Selection>
<h1> Something</h1>
</Selection>
)
}
}
import React,{Component}来自“React”
从“react dom”导入react dom
//从“react bootstrap”导入{Selection,Form,Button,FormGroup,FormControl,ControlLabel};
类索引扩展组件{
render(){
返回(
某物
)
}
}
导出默认索引您的
选择
导入已被注释掉,因此错误正是它所说的,选择
未定义