반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- HOC
- MySQL
- 자료구조
- 리액트
- JavaScript
- State
- event
- nodejs
- Vue transition
- vuex
- Wecode
- webpack
- 댓글달기
- jsx
- Vue
- storybook
- 자바스크립트
- input
- scss
- react
- sass
- mapGetters
- express
- Vue.js
- App.vue
- v-html
- ES6
- CSS
- 쉬운설명
- TypeScript
Archives
- Today
- Total
목록select (1)
익명의 개발노트
[Select Tag, Multi input] 이벤트 핸들링
Select Tag 사용시 이벤트 핸들링 Grapefruit Lime Coconut Mango 1. state 초기값 설정 2. select 태그에 대한 이벤트 핸들러 설정 3. 이벤트 핸들러에서 setState값 변경 class FlavorForm extends React.Component { constructor(props) { super(props); this.state = {value: 'coconut'}; //1.초기값 설정 this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { //3.setState값 변경 this.setStat..
프로그래밍/ReactJS
2019. 6. 20. 11:00