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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
259
Chapter 11_
네임스페이스 패턴
theme: {
skin: "a",
toolbars: {
index: "ui-navigation-toolbar",
pages: "ui-custom-toolbar",
},
},
};
JSON
은 사실 객체 리터럴 표기법의 서브셋
subset
이며, 문법적으로 약간의 차이만 있습니다
(예를 들면,
JSON
의 키는 문자열이어야 합니다 ). 만약 애플리케이션의 환경설정 데이터를
저장할 때
JSON
을 사용하고 싶다면 (예를 들어, 백엔드 서버로 데이터를 전송할 때 단순하게
저장해 보내고 싶다면 ), 언제든지 원하는대로 사용할 수 있습니다.
11.5
중첩 네임스페이스 패턴
객체 리터럴 패턴을 발전시킨 형태가 바로 중첩 네임스페이스
Nested
Namespace
패턴입니다. 중첩
네임스페이스 패턴은 다른 패턴에 비해 충돌 위험이 낮은 편입니다. 비록 같은 이름의 네임
스페이스가 존재한다고 하더라도, 하위에 중첩된 네임스페이스까지 정확하게 일치할 가능성
은 낮기 때문입니다.
예를 들어, 다음과 같은 형태가 있습니다.
YAHOO.util.Dom.getElementsByClassName("test");
과거 야후의
YUI
라이브러리 구버전에서는 중첩 객체 네임스페이스 패턴을 자주 사용했습
니다. 예전에 제가
AOL
에서 엔지니어로 일할 때도 ...
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