> For the complete documentation index, see [llms.txt](https://organization-bht.gitbook.io/it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://organization-bht.gitbook.io/it/undefined-1/react-with-typescript/react/5./1/flux.md). Agents can also search and read this documentation through its [MCP server](https://organization-bht.gitbook.io/it/~gitbook/mcp).

# FLUX

Flux의 개념에 대해 배울 페이지

## **Intro**

Flux란 라틴어로 흐름이라는 뜻으로 리액트의 **단방향 데이터 전달**을 함축적으로 표현 하고 있는 단어이다.

**FLUX**는 **MVC**패턴과 같은 **소프트웨어 설계 아키텍쳐**의 일종으로 클라이언트 측에서 작동하는 **SPA**앱들은 **MVC**패턴방식으로 구현이 힘들기 때문에 이를 대체하기 위해 등장했다.

## 1) MVC&#x20;

<figure><img src="https://3572862491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUON3CGxVeoUR2YdtAhxl%2Fuploads%2FlFl0G3dRAvJKGGdPnDSY%2Fimage.png?alt=media&amp;token=a2ca0c2e-ff46-484e-ab9e-5b727d5160dd" alt=""><figcaption><p>MVC Pattern</p></figcaption></figure>

MVC방식으로 앱설계시 컴포넌트(View)들 간의 관계가 굉장히 복잡하다. 어플리케이션의 기능이 커질수록 복잡도는 더욱 증가할 것이고 이런 설계방식은 어플리케이션을 확장하거나 유지보수하는데 있어서 큰 골칫거리가 된다.&#x20;

## 2) FLUX

<figure><img src="https://3572862491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUON3CGxVeoUR2YdtAhxl%2Fuploads%2F02GeJiENNhQdGUucdX5E%2Fimage.png?alt=media&amp;token=0eb89e37-35b3-4436-b45d-7e33bcfa708c" alt=""><figcaption><p>한글로 바꾸기</p></figcaption></figure>

단방향 데이터흐름이라느 컨셉을 사용함에 따라 복잡도가 많이 줄어들었다. FLUX는 MVC패턴과 다른 구성요소들을 가지는데 Dispatcher, Store, View, Action이 있다.&#x20;
