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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
201
Chapter 08_
자바스크립트 MV* 패턴
8.10.1
MV
* 패턴과 리액트
분명히 말하자면, 리액트는
MVC
프레임워크가 아닙니다. 리액트는
UI
구축을 위한 자바스
크립트 라이브러리이며, 주로
SPA
Single
Page
Application
개발에 사용됩니다.
리액트는 백엔드에서 전통적으로 구현되고, 사용되는
MVC
패턴과 잘 맞지 않기 때문에
MVC
로 분류되지 않습니다. 리액트는 뷰 계층을 원하는대로 구성하게 해주는 렌더링 라이브
러리입니다. 기존
MVC
와 같이 중앙 제어 역할을 하는 컨트롤러, 혹은 라우터 기능이 포함되
어 있지 않습니다.
리액트는 선언형 프로그래밍 방식을 따릅니다. 즉, 개발자는 애플리케이션이 원하는 상태를
기술하고, 리액트는 그 상태를 기반으로 적절한 뷰를 렌더링합니다. 리액트를
MVC
디자인
패턴에서 사용하지 않는 이유는 리액트에서는 서버가 브라우저에 ‘뷰’를 직접 제공하지 않고,
‘데이터’를 제공하기 때문입니다. 리액트는 이 데이터를 브라우저에서 구문 분석하여 실제 뷰
를 생성합니다. 이러한 관점에서, 리액트를
MVC
패턴의 뷰 (
V
)라고 할 수는 있지만, 전통적
인 의미에서의
MVC
프레임워크는 아닙니다.
다른 관점에서 보면 리액트는
MVC
를 기술에 따라 수평적으로 나누는 대신, 관심사에 따라
수직적으로 나눕니다. 리액트의 컴포넌트는 상태 (모델 ), 렌더링 (뷰), 제어 흐름 로직 (소규
모의 지역화된 컨트롤러 )를 담고 있는 작은 수직 분할형
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