Should I access document inside React component in order to create event listeners?

后端 未结 0 1112
醉话见心
醉话见心 2021-02-19 09:22

I know it is not recommended to access DOM Elements inside React Component using document.getElementBy... - I\'m using Ref instead, if needed.

H

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