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 | 31 |
Tags
- 자바스크립트
- GRID
- form
- TypeScript
- javscript
- express
- pug
- Session
- API
- DART
- ECMAScript
- MongoDB
- NextJs
- graphQL
- HTML
- Component
- frontend
- clonecoding
- Flutter
- 리액트
- heroku
- ES6
- nodejs
- react
- CSS
- node.js
- Mongoose
- backend
- JavaScript
- CLONE
Archives
- Today
- Total
목록Life cycle (1)
Enjoy Programming

react component에서 사용하는 유일한 function은 render function이다. 하지만 react class component는 단순히 render fucntion이외에 더많은 것이 있다. 이들은 life cycle method를 가지는데, 기본적으로 react가 component를 생성하고 다시 없애는 방법이다. 컴포넌트가 생성될 때, render전에 호출되는 몇가지 function이 있고~ render된 후 호출되는 다른 function들이 존재한다. 자 이제 life cycle method중 Mounting을 살펴보겠다. react 공식 문서에서 살펴보면 이 메소드는 컴포넌트의 인스턴스가 생성되어 Dom에 insert될 때 순서대로 호출된다고 한다. Mounting method중..
JavaScript/React
2021. 6. 1. 02:39