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

용어 (Render vs Mount) #6

Open
yjkwon07 opened this issue Oct 10, 2020 · 1 comment
Open

용어 (Render vs Mount) #6

yjkwon07 opened this issue Oct 10, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@yjkwon07
Copy link
Member

Render vs Mount ??

"Rendering" is any time a function component gets called (or a class-based render method gets called) which returns a set of instructions for creating DOM.

"Mounting" is when React "renders" the component for the first time and actually builds the initial DOM from those instructions.

@yjkwon07 yjkwon07 changed the title 용어 용어 (Render vs Mount) Jan 8, 2021
@yjkwon07 yjkwon07 added the documentation Improvements or additions to documentation label Jan 8, 2021
@yjkwon07
Copy link
Member Author

yjkwon07 commented Feb 3, 2021

  • RenderingVirtualDom까지 반영하는 과정을 말하며, render혹은 function component를 호출하여 React.createElement를 만든다.
  • 즉, rendering을 한다는 render를 호출한다라는 의미로도 해석할 수 있다.

  • MountingUnMountingreconciliation이 아닌 DOM자체가 변경되었을 때, UnMounting 후 다시 Mounting을 하게 된다.
  • 즉, VirtualDom => RealDom으로 전체 반영이된다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant