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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
174
자바스크립트 + 리액트 디자인 패턴
// 모든 객체를 의미 있는 워크플로로 조정
}
}
이 예제에서는
MenuItem
이 클릭될 때
menu
:
click
:
foo
이벤트가 발생합니다.
MyWorkflow
클래스의 인스턴스가 이 이벤트를 처리하고 모든 객체를 조율하여 이상적인 사용자 경험과
워크플로를 구현합니다.
이벤트 집합 패턴과 중재자 패턴을 결합함으로써 코드와 애플리케이션 구현 양쪽에서 유의
미한 사용자 경험을 만들어냈습니다. 이벤트 집합 패턴을 통해 메뉴와 워크플로 사이의 명확
한 분리를 구현할 수 있었고, 중재자 패턴을 통해 워크플로의 관리 및 유지보수성을 강화하
였습니다.
7.19.6
최신 자바스크립트에서의 중재자 패턴과 미들웨어
Express
.
js
22
는 널리 사용되는 웹 애플리케이션 서버 프레임워크입니다.
Express
.
js
에서는
사용자가 접근할 수 있는 특정 경로에 콜백 함수를 추가할 수 있습니다.
예를 들어 사용자가 루트 경로(/)에 접근할 때 해당 요청에 헤더를 추가하려는 경우, 미들웨
어를 사용해 쉽게 구현할 수 있습니다.
const app = require("express")();
app.use("/", (req, res, next) => {
req.headers["test-header"] = 1234;
next();
});
Express
.
js
에서는 ...
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