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

什么情况下Fiber节点会没有对应的DOM节点 #16

Open
wb-gj198118 opened this issue Jan 21, 2023 · 2 comments
Open

什么情况下Fiber节点会没有对应的DOM节点 #16

wb-gj198118 opened this issue Jan 21, 2023 · 2 comments

Comments

@wb-gj198118
Copy link

wb-gj198118 commented Jan 21, 2023

我在介绍Fiber的文章中看了一句话“一个DOM节点一定对应着一个Fiber节点,但一个Fiber节点却不一定有对应的DOM节点”

希望了解的告知下,我好关注一下这个,我只在这里看到了,其它的一些源码解析中,貌似都没看到类似的说法,因此在还没开始前端,希望能有大佬指点一下,10年菜鸟级别的路过,顺便留个脚印,哈哈哈

@DWL716
Copy link

DWL716 commented Feb 9, 2023

fiber可以是一个组件

@neroneroffy
Copy link
Owner

类组件或者函数式组件

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

No branches or pull requests

3 participants