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

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

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
325
Chapter 12_
리액트 디자인 패턴
전체 목록을 모두 렌더링하는 대신 현재 화면에 보이는 행만 동적으로 렌더링합니다. 렌더링
되는 행은 전체 목록의 일부이며, 사용자가 스크롤함에 따라 보이는 영역 (윈도우 )이 이동합
니다. 리액트에서는
react
-
virtualized
16
같은 라이브러리를 사용하여 구현할 수 있습니
다. 브라이언 본
Brian
Vaughn
17
이 개발한 이 라이브러리는 스크롤되는 뷰포트 내에서 현재 보이
는 항목만 렌더링하므로, 한 번에 수천 개의 행 데이터를 렌더링하는 데 드는 리소스를 절약
할 수 있습니다.
12.11.1
윈도잉/가상화의 작동 방식
리스트 가상화는 현재 화면에 보이는 항목만 렌더링하여 성능을 최적화하는 기술입니다.
react
-
virtualized
에서 윈도잉
18
은 다음과 같은 방식으로 작동합니다.
■ 상대적인 위치
position
:
relative
를 가진 작은 컨테이너
DOM
요소 (예:
<
ul
>
)를 윈도우로 사용합니다.
■ 스크롤을 위한 큰
DOM
요소를 가집니다.
■ 컨테이너 내부에 자식 요소를 절대 위치
position
:
absolute
로 배치하고,
top
,
left
,
width
,
height
등의 스타
일을 설정합니다.
■ 한 번에 수천 개의 목록 요소를 렌더링하여 초기 렌더링 속도 저하 또는 스크롤 성능 저하를 ...
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