DEV Community

techdurjoy
techdurjoy

Posted on

Easy Way to Access Dom Using Vue 3 Refs Example

Using Vue's ref property, you can easily read files from . By specifying input type to file and giving the tag a ref property, you can pull the file into your methods and manipulate it as you deem fit. Here is the code to preview the selected image.

Easy Way to Access Dom Using Vue 3 Refs Example

Top comments (0)