[Development]What is meant by the term “hook” in programming?
2020. 7. 16. 12:58
https://stackoverflow.com/questions/467557/what-is-meant-by-the-term-hook-in-programming Essentially it's a place in code that allows you to tap in to a module to either provide different behavior or to react when something happens 다른 동작을 제공하거나 어떤것이 일어났을때 반응하기 위한 모듈로 활용하는 코드. react에서는 함수형 컴포넌트에는 state 와 생명주기 함수가 없다. hooks을 이용하여 state와 생명주기를 활용할수가 있는데, 그래서 이름이 hooks 인것이다. import React, { useState..