【发布时间】:2019-03-31 06:36:36
【问题描述】:
我在 React 页面中有动态表单元素,我不确定将所有输入值读取到状态或任何其他可能的解决方案的最佳方法是什么。请提出建议。
render() {
{
answer.map((item) => {
const code = item.code;
const question = item.question;
return (
<View>
<FormLabel labelStyle= {{
color : '#000',
fontSize: 20
}}>{question}</FormLabel>
<FormInput name={code} />
</View>
);
})
}
}
【问题讨论】:
标签: reactjs react-native