-
Notifications
You must be signed in to change notification settings - Fork 0
[SeoIn] Virtual-DOM #2
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
base: main
Are you sure you want to change the base?
Conversation
Fiber 이전에 리액트트 스택 기반 재조정 알고리즘으로 사용하다보니 렌더링 우선 순위 같은 문제를 해결할 수 없었다고 하네요. 즉 동기적으로 사용했다고 볼 수 있어요!. 지금은 렌더링을 작은 단위로 나누고 비동기로 동작하도록 하여 우선 순위 문제를 해결할 수 있었다고 합니다! 제 생각이지만 이 때부터 리액트가 렌더링 관련한 UX를 많이 신경쓰는것 같아요. React 18버전에서는 Fiber를 바탕으로 중요한 작업과 덜 중요한 작업들을 나누어 처리하고 있는것 처럼요! |
D5ng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Virtual DOM 만드는게 어려웠을텐데 고생 많으셨습니다! 저랑은 다르게 구현을 하였지만 VirtualDOM을 이해하는데 큰 문제가 없는것 같아요!
한 가지 궁금한건 JSX를 사용하지 않고 RealDOM의 형태를 사용하여 구현하셨는데, JSX를 사용한것과 비교했을 때 어떤 느낌이였나요 ?
| @@ -0,0 +1,11 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 vite.config.ts에서 세팅했는데, 이렇게 해도 잘 동작하나보네요!
이 방법이 원초적인것 같아 좋은것 같네요. 참고해서 다시 해봐야겠어요 👍
공부한 것
고민 점