Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] React는 Platform-Agnostic인 이유가 뭘까? #2

Open
One-HyeWon opened this issue Oct 27, 2024 · 0 comments
Open

[question] React는 Platform-Agnostic인 이유가 뭘까? #2

One-HyeWon opened this issue Oct 27, 2024 · 0 comments
Assignees
Labels

Comments

@One-HyeWon
Copy link
Member

One-HyeWon commented Oct 27, 2024

어려웠던 점은 무엇인가요?

Section1. "시작하기" 강의 내용 중에서, react-dom 라이브러리가 없으면 React는 Platform-Agnostic 이라고 언급

  1. Platform-Agnostic이란 뭘까?
  2. 왜 React는 Platform-Agnostic일까?

해당 문제에 대한 본인의 생각을 작성해주세요.

1. Paltform-Agnostic이란?


Agnostic : 독립적인, 구애받지 않는 / "불가지론적"
즉, 플랫폼에 구애받지 않는 다는 뜻이다.
이는 특정 플랫폼에 종속되지 않고 다양한 플랫폼에서 작동할 수 있는 것을 의미한다.

이렇게 플랫폼에 구애받지 않는 기술은 여러 플랫폼을 효율적으로 지원할 수 있고, 미래 변화에 유연하게 대응 할 수 있게 도와준다고 한다.

  • 웹 브라우저: Chrome, Firefox, Safari, Edge 등 다양한 브라우저에서 동일하게 작동하는 웹사이트는 플랫폼에 구애받지 않습니다.

  • 모바일 앱: Android와 iOS에서 모두 작동하는 앱은 플랫폼에 구애받지 않습니다.

  • 프로그래밍 언어: Java, Python, JavaScript 등은 다양한 운영 체제(Windows, macOS, Linux)에서 작동하는 플랫폼에 구애받지 않는 언어입니다.



2. React는 왜 Platform-Agnostic일까?


React는 UI를 구성하는 데 사용되는 컴포넌트 기반 프레임워크다.
React 컴포넌트는 특정 플랫폼에 종속되지 않고 재사용 가능하다.
react-dom (web), React Native (Mobile) 등 **플랫폼별 라이브러리*를 통해 각 플랫폼에서 UI를 렌더링 한다.

즉, React 코드 자체는 특정 플랫폼의 UI 요소에 의존하지 않는다.
각 플랫폼 마다 React를 사용하기 위한 라이브러리가 존재하고, React는 라이브러리를 통해 여러 플랫폼과 상호작용한다.

@One-HyeWon One-HyeWon self-assigned this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant