13 Controlled Inputs
来源:互联网 发布:端口转发和端口映射 编辑:程序博客网 时间:2024/05/01 22:33
vi src/ContactsList.js
import React from 'react';import Contact from './Contact';class ContactsList extends React.Component{ constructor(){ super(); this.state ={ search:'Level Up' }; } updateSearch(event){ // console.log(event.target.value); this.setState({search:event.target.value.substr(0,20)}); } render(){ console.log(this.props.contacts); return( <div> <ul> {this.props.contacts.map((contact)=>{ return <Contact contact={contact} key={contact.id}/> })} </ul> <input type="text" value={this.state.search} onChange={this.updateSearch.bind(this)} /> </div> ) }}export default ContactsList;
0 0
- 13 Controlled Inputs
- Vertex Shader Inputs【转】
- mex2 Inputs and Outputs
- 2.2. Multiple Inputs
- Radio-controlled model
- marker controlled watershed
- EEG-controlled machine
- read unknown number of inputs
- DE23 Use with Impulse Inputs
- tensorflow编程: Inputs and Readers
- UVA 12538 Version Controlled IDE
- UVAL 6145 Version Controlled IDE
- Video4Linux2 part 4: inputs and outputs
- Reading an unknow number of Inputs
- deal - Distribute inputs to outputs matlab
- HTML5/CSS3 graphic enhancement: buttons, inputs
- tf API 研读4:Inputs and Readers
- 171116 Keras-Multiple inputs and outputs
- smarty--初级
- python中的高阶函数
- 优先使用TimeUnit类中的sleep()
- Spring MVC 典型分层Java代码生成工具
- 基础练习 高精度加法
- 13 Controlled Inputs
- [替罪羊树 模板题] BZOJ 3224 Tyvj 1728 普通平衡树
- BZOJ 1989 概率相关
- 跨域
- select完善echoclient代码讲解
- 栈—传纸条(重复字母的删除)
- 'imread' was not declared in this scope
- HBase 基本Java API
- PAT甲级1079