ReactJs functional component add function to an eventListener and then invoke it

前端 未结 0 648
天命终不由人
天命终不由人 2021-02-02 04:26

Is it possible to create an event listener in a functional component and then invoke it from chrome console?

For example:

const Component = () => {
   c         


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