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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
364
자바스크립트 + 리액트 디자인 패턴
14.2.2
컨테이너
만약 컴포넌트를 프레젠테이션 컴포넌트와 상태 저장 컨테이너 컴포넌트
09
로 분류하는 방식
으로 코드를 구성했다면, 컨테이너 컴포넌트를 위한 별도의 폴더를 만들 수 있습니다. 컨테
이너는 복잡한 상태 관리 로직을 컴포넌트의 다른 측면으로부터 분리하는 데 도움이 됩니다.
/src
/components
/component1
index.js
styled.js
/containers
/container1
컨테이너를 포함하는 애플리케이션의 전체 구조는 같은 글
10
에서 확인할 수 있습니다.
14.2.3
Hooks
Hooks
는 다른 유형의 코드와 마찬가지로 혼합 구조에 잘 어울립니다. 모든 리액트 컴포넌
트에서 사용할 수 있는 공통
Hooks
를 위한 폴더를 만들어 관리할 수 있으며, 단일 컴포넌트
에서만 사용되는
Hooks
는 해당 컴포넌트의 파일이나 컴포넌트 폴더 내 별도의
hooks
.
js
파일에 유지해야 합니다. 샘플 구조는 이곳
11
에서 확인할 수 있습니다.
/components
/productList
index.js
test.js
style.css
hooks.js
09
https
://
oreil
.
ly
/
JeYgI0
10
https
://
oreil
.
ly
/
JeYgI
11
https
://
oreil
.
ly
/
rtT1n
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