Error on dynamic data addition in class component--× TypeError: this.state.fields.map is not a function

后端 未结 0 985
别那么骄傲
别那么骄傲 2020-12-04 23:27
import React, {useState} from \'react\';
import \'./App.css\';

function App() {
const [fields, setFields] = useState([{ value: null }]);
 function handleChange(i, e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题