我是react新手,我想在功能组件中使用react-select。但总是会出现这样的错误:
'handleChange‘未定义为no-undef。
'selectedOption‘未定义为no-undef。
“选项”未定义为no-undef。
下面是文件Store.js中的代码
import React from 'react';
import Select from 'react-select';
function Store(){
React.useState({selectedOption: null})
ha
我有反应密码
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import SelectBox from '../SelectBox';
import Icon from '../Icon';
import Input from '../Input';
import CountryItem from './comp