React + TypeScript: Scroll event type not assignable to window.addEventListener

后端 未结 0 1812
执念已碎
执念已碎 2021-01-01 22:12

Can it be that TypeScript DOM types for events and React Event types don\'t go well with another?

Look at this code:

  useEffect(() => {
    const o         


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