Yongtae Jeon

react. 폼 핸들링 관련한 몇가지 동작 규칙

20180425

render() {
    return (
        <div>
        <input 
        	type="text" 
        	value={ this.state.textValue } 
        	onChange={
        		()=>this.setState( 
        			Object.assign( 
        				{},
                        this.state, 
                        { textValue : e.target.value }
					) 
				)
        	}
        	/>
        </div>
    );
}