Difference between attaching React portal directly to DOM node vs to a detached node?

前端 未结 0 949
谎友^
谎友^ 2020-12-05 02:29

Regarding React portals, what is the difference between creating a detached node then appending it to the document vs directly having the portal rendered into the document?<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题