Closed rullymartanto closed 6 months ago
I tried using it in a React TypeScript project and attempted to add programmatic closing functionality, but encountered this ts error, anybody get the same issue?
Hey @rullymartanto your ref is typed as null. Do as follow
null
useRef<number|string>()
I tried using it in a React TypeScript project and attempted to add programmatic closing functionality, but encountered this ts error, anybody get the same issue?