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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
234
자바스크립트 + 리액트 디자인 패턴
<pre xmlns="http://www.w3.org/1999/xhtml" id="I_programlisting11_id234274"
data-type="programlisting" data-code-language="javascript">
// 해당 구현은 jQuery Deferred, futures.js 등 다양한 구현과 호환될 수 있습니다.
define(["lib/Deferred"], function( Deferred ){
var defer = new Deferred();
require(["lib/templates/?index.html","lib/data/?stats"],
function( template, data ) {
defer.resolve( { template: template, data:data } );
}
);
return defer.promise();
});
</pre>
앞서 살펴본 것처럼, 디자인 패턴은 일반적인 개발 과정에서 발생하는 문제들을 해결하기 위
한 구조화된 접근 방식을 제공하여 그 효율성을 크게 높일 수 있습니다.
10.2.2
AMD
모듈과
jQuery
jQuery
는 단 하나의 파일로 제공됩니다. 하지만
jQuery
라이브러리의 플러그인 기반 특
성을 고려하면,
jQuery
를 사용하는 ...
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.
Start your free trial

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

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

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

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

Publisher Resources

ISBN: 9791169212571