Skip to Content
자바스크립트 + 리액트 디자인 패턴
book

자바스크립트 + 리액트 디자인 패턴

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
184
자바스크립트 + 리액트 디자인 패턴
습니다. 하지만 자바스크립트 애플리케이션에서는 ‘상태
state
’라는 용어가 다르게 해석되는데,
보통은 사용자의 화면에 특정 시점에 나타나는 ‘상태’ (즉, 특정 데이터를 포함한 뷰 또는 서브
뷰)를 의미합니다. 특히
SPA
Single
Page
Application
를 다룰 때는 이 ‘상태’의 개념이 중요한데,
SPA
환경에서는 이러한 상태를 시뮬레이션할 필요가 있기 때문입니다.
정리하자면, 모델은 비즈니스 데이터와 주로 관련이 있습니다.
8.2.2
뷰
뷰는 모델에 대한 시각적인 표현으로, 현재 상태의 특정 부분만 보여줍니다.
Smalltalk
의 뷰
가 비트맵을 생성하고 관리하는 역할이라면, 자바스크립트의 뷰는 여러
DOM
요소의 집합
을 생성하고 정리하는 역할을 합니다.
일반적으로 뷰는 모델을 관찰하고, 모델에 변화가 생기면 알림을 받습니다. 이를 통해 뷰는
스스로를 업데이트할 수 있습니다. 디자인 패턴 관련 자료에서는 뷰를 종종 둔하다
dumb
고도
하는데, 뷰는 애플리케이션 내의 모델이나 컨트롤러에 대한 정보를 제한적으로 갖기 때문입
니다.
사용자는 뷰와 상호작용할 수 있습니다. 여기에는 모델의 데이터를 읽고 수정 (모델의 속성
값을 가져오거나 설정)하는 기능도 포함됩니다. 뷰는 프레젠테이션 계층이기 때문에 편집과
업데이트 기능을 유저 친화적으로 제공합니다. 예를 들어 앞에서 얘기했던 사진 갤러리 애플
리케이션의 경우 특정 사진을 선택한 사용자가 해당 사진의 메타데이터를 편집할 수 있는 ‘편
집 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

박찬성, 에일린 닐슨
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9791169212571