我试图在一个类组件中使用一个函数组件,但是我不能让它工作。Documentation states that there should be two different state object.我如何把它写成一个类组件呢?import React from 'react';import Autocomp
因此,因为我在多个页面上有多个表单,所以我认为最好有一些组件来动态地创建表单中所需的行数。我刚刚尝试过这样的方法:A component is changing a controlled input to be uncontrolled.如果我在提交时console.log formValues,我就得不到想要的输出。谢谢。