I have a hierarchy of three components like below.
I somehow want to access
img element in image component from list component in
updateSource method to set original image’s source to whatever value coming as
I know vuex can be used to declare a state variable which can be used reactively updated and reflect changes in any component. Although, my original intention is to understand the best possible way(s) to access elements across components and what are the best practices involved in doing so.