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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
196
자바스크립트 + 리액트 디자인 패턴
는 점을 인식했습니다.
MVVM
은 초기에
KnockoutJS
,
Kendo
MVVM
,
Knockback
.
js
같은 구조적 프레임워크의
형태로 자바스크립트에 구현되었고, 커뮤니티에서 전반적으로 긍정적인 반응을 얻었습니다.
이제
MVVM
을 구성하는 세 가지 요소에 대해 살펴보겠습니다.
■
모델
: 도메인에 관련된 정보를 전달합니다.
■
뷰
: 사용자 인터페이스 (
UI
) 입니다.
■
뷰모델
: 모델과 뷰 사이의 인터페이스 역할을 합니다.
8.7.2
모델
다른
MV
* 패턴들과 마찬가지로,
MVVM
의 모델은 우리 애플리케이션이 사용할 도메인 관
련 데이터나 정보를 제공합니다. 도메인 관련 데이터의 대표적인 예로는 사용자 계정 (이름,
아바타, 이메일 ) 또는 음악 트랙(제목, 연도, 앨범 ) 등이 있습니다.
모델은 보통 정보를 담고 있지, 동작을 다루지 않습니다. 모델은 정보 형식을 지정하지 않
고, 데이터가 브라우저에 어떻게 표현될지에 영향을 미치지 않습니다. 이러한 역할은 모델의
책임이 아니기 때문입니다. 대신에 데이터 형식 지정은 뷰가 담당하고, 동작은 모델과 상호
작용하는 또 다른 계층인 뷰모델에서 캡슐화하여 처리해야 하는 비즈니스 로직으로 간주됩
니다.
모델의 역할 중 유일한 예외는 데이터 유효성 검사입니다. 기존 모델을 정의하거나 업데이트
하는 데 사용되는 데이터에 대한 유효성 검사는 모델에서 수행하는 것이 허용됩니다 (예: 입
력된 이메일 주소가 특정 정규식의 요구 조건을 충족하는가?).
8.7.3
뷰
MVC
와 ...
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