【发布时间】:2019-01-11 15:18:38
【问题描述】:
我有问题。我有 3 个输入字段,我想在其中放置链接。 这 3 个输入字段在该状态下应该全部放在一个链接数组中。 我是一个完全反应的新手。你能帮帮我吗?
export default class Dashboard extends Component {
constructor() {
super();
this.state = {
link : [],
};
<Form onSubmit={this.handleSubmit} >
<Input
type="text"
fluid
label="Social Link 1"
placeholder="www.twitter.com/artist"
style={{ margin: "1rem" }}
width={6}
name="link"
value={}
onChange={this.handleInputChange}
/>
<Input
type="text"
fluid
label="Social Link 2"
placeholder="www.twitter.com/artist"
style={{ margin: "1rem" }}
width={6}
name="link"
value={}
onChange={this.handleInputChange}
/>
<Input
type="text"
fluid
label="Social Link 3"
placeholder="www.twitter.com/artist"
style={{ margin: "1rem" }}
width={6}
name="link"
value={}
onChange={this.handleInputChange}
/>
【问题讨论】:
标签: javascript node.js reactjs input semantic-ui