반응형
The code above is a good example of imperative programming. You’re writing the steps for how the user interface should be updated. But when it comes to building user interfaces, a declarative approach is often preferred because it can speed up the development process. Instead of having to write DOM methods, it would be helpful if developers were able to declare what they want to show (in this case, an h1 tag with some text).
In other words, imperative programming is like giving a chef step-by-step instructions on how to make a pizza. Declarative programming is like ordering a pizza without being concerned about the steps it takes to make the pizza. 🍕
(출처 : Nextjs 튜토리얼)
반응형
'Action > Path to Cowcowwow' 카테고리의 다른 글
[FE Dev] 프론트엔드 개발자 되기 스프린트 2 회고(22.05.09-22.05.23) (0) | 2022.05.30 |
---|---|
[FE Dev] 프론트엔드 개발자 되기 스프린트 1 회고(22.04.20-22.05.04) (0) | 2022.05.05 |
[FE Dev] JavaScript 함수, 함수 선언문과 함수 표현식 비교 (0) | 2022.05.04 |
[FE Dev] && , || 연산자 추가 기능 (0) | 2022.05.03 |
[FE Dev] 동등, 비교 연산자 사용 시 주의사항 (0) | 2022.04.25 |