How can I use SolidJS ref with typescript?
I want to create a ref to a canvas element:
But I keep getting TS error that "Variable
ref
is being used without being assigned." What's the correct way to use refs with Typescript?1 Reply
let ref: HTMLCanvasElement!
or just use signals