Skip to Content
실전 코드로 배우는 Vue.js
book

실전 코드로 배우는 Vue.js

by 마야 셰빈, 정병열
October 2024
Beginner to intermediate
452 pages
9h 28m
Korean
Hanbit Media, Inc.
Content preview from 실전 코드로 배우는 Vue.js
311
CHAPTER 09
피니아와 상태 관리
피니아와 상태 관리
09
CHAPTER
이전 장은 애플리케이션 라우팅 구축 과정을 안내하며 중첩 라우트, 라우트 가드, 동적 라우
트 내비게이션 등의 기능을 소개했다.
이번 장에서는
Vue
공식 라이브러리인 피니아
Pinia
로 애플리케이션의 상태를 관리하고 내부
데이터 흐름을 제어하는 방법을 소개한다. 또한 효율적이며 재사용 가능한 상태 관리 시스템
을 구축하는 과정을 안내할 것이다.
9.19.1
VueVue
의 상태 관리의 상태 관리
데이터는 애플리케이션에 생명을 불어넣고 컴포넌트 사이에 관계를 형성한다. 컴포넌트는
데이터의 상태를 매개로 서로 통신하며 사용자와 상호작용한다. 규모와 복잡도를 막론하고,
실제 데이터를 취급하는 모든 애플리케이션은 상태 관리가 중추적인 역할을 한다. 이전 장에
서 구축했던 피자 하우스 예시는 피자 목록과 상품 정보 카드를 갤러리로 보여줄 뿐이었다.
사용자가 갤러리 컴포넌트에서 상품을 골라 장바구니에 담는 기능을 추가하려면 그에 맞는
데이터 관리 기능이 필요하다. 상품을 장바구니 데이터에 담고, 제품의 재고 데이터를 업데
이트하는 동시에 이를 컴포넌트로 표현해야 한다.
312
실전 코드로 배우는 Vue.js
피자 하우스 애플리케이션의 메인 뷰(
App
.
vue
)는 헤더 컴포넌트(
HeaderView ...
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

실전 자바 소프트웨어 개발: 4가지 프로젝트로 배우는 최신 자바 개발 기법

실전 자바 소프트웨어 개발: 4가지 프로젝트로 배우는 최신 자바 개발 기법

우정은, 라울-게이브리얼 우르마, 리처드 워버턴
자바스크립트 + 리액트 디자인 패턴

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

애디 오스마니(Addy Osmani)
실무로 통하는 타입스크립트

실무로 통하는 타입스크립트

슈테판 바움가르트너

Publisher Resources

ISBN: 9791169212991