본문 바로가기

React

[ReactHooks] 3. useEffect

- what is callback?

 

A callback function is a function which is:

  • passed as an argument to another function, and,
  • is invoked after some kind of event.

간단명료한 답변이다.

 

즉, 콜백 함수란

1. 다른 함수의 인자로써 이용되는 함수.

2. 어떤 이벤트에 의해 호출되어지는 함수.


출처: https://satisfactoryplace.tistory.com/18 

'React' 카테고리의 다른 글

[react, css] 헤더만들기  (0) 2022.02.18
[CSS] Flexbox  (0) 2022.02.15
[ReactHooks] 1. useState  (0) 2022.02.02
[React] 3. fetch  (0) 2022.01.29
[React] 4. Router  (0) 2022.01.29