Skip to content

How to add correct types to useRef of perspective camera? #1315

Answered by drcmda
xzilja asked this question in Q&A
Discussion options

You must be logged in to vote

const ref = use ref<THREE.PerspectiveCamera>(null!)

Mind the ! in the end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xzilja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants