-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to typify ref? #71
Comments
It's a React type, it's used to make a typed reference of PrismaZoom. In a few lines below, you can see that calling methods like |
@sylvaindubus I have "typescript": "~5.1.3" and "react": "16.14.0" and I can't export ComponentRef from React. |
@cheechoo28 Well, I am using react |
In your demo I see this typing ref
![image](https://private-user-images.githubusercontent.com/62035044/248771409-c179efec-16af-41f4-afcb-b70f71989d61.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2MTE1NzYsIm5iZiI6MTcxODYxMTI3NiwicGF0aCI6Ii82MjAzNTA0NC8yNDg3NzE0MDktYzE3OWVmZWMtMTZhZi00MWY0LWFmY2ItYjcwZjcxOTg5ZDYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDA4MDExNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkYjZiZWYwM2E4OTczNTU5ODFiZjMwMjliMTY4OThkMWI4NzJhODFiYTExNTEwNGU4NDRlNjRlZjdiYTZlM2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VaHgb6lykXzIYzMqTD0Bcy29vw0g-k7fFmdIHyUacl8)
What is the ComponentRef?
I don't understand how I can do typing :(
The text was updated successfully, but these errors were encountered: