DEV Community

loading...

Easy Way to Access Dom Using Vue 3 Refs Example

techdurjoy
・1 min read

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

Discussion (0)