Jest Unit testing - How to pass a ref to the component

后端 未结 0 910
南方客
南方客 2020-12-08 07:12

I am trying to test a component that will accept a ref as a prop and then put focus on the ref as soon as the component is mounted. So basically my component doe something l

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