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 |
Tags
- spring
- jsp
- 맥길대학교
- Keycloak 17.0.1
- json
- REACT
- 메서드
- keycloak
- arraylist
- aws
- Flutter
- 인텔리제이
- jQuery
- Docker
- ES6
- vue
- 현장학습
- vue.js
- gradle
- JavaScript
- jpa
- 글로벌
- 자바스크립트
- nginx
- 스프링
- 에러
- 알고리즘
- java
- SpringBoot
- lightsail
Archives
- Today
- Total
목록State (1)
korean IT student
React - State and Lifecycle
1. State 컴포넌트 내부에서 바뀔 수 있는 값을 의미 하나는 클래스형 컴포넌트가 지니고 있는 state이고, 다른 하나는 함수 컴포넌트에서 useState라는 함수를 통해 사용하는 state 2. 클래스형 컴포넌트의 State 컴포넌트에 state를 설정할 때는 다음과 같이 constructor 메서드를 작성, 이는 컴포넌트의 생성자 메서드. 클랙스형 컴포넌트에서 constructor를 작성할 때는 반드시 super(props)를 호출해 주어야 한다. 이 함수가 호출되현 상속받고 있는 리액트 Component 클래스가 지닌 생성자 함수를 호출 class Counter extends React.Component { constructor(props) { super(props); this.state = ..
front-end/React
2022. 7. 27. 01:18