Re:Vue vs React: Best Choice for Startups
by Rodeoclash on Wednesday November 18, 2020 @04:49PM
(#25142873)
That's correct. However in Vue I have access to $this.parent which is an instance of the parent component. My child component can read data directly from it, even modify state of the parent by reassigning values.
[ Parent
| on HN ]
Re:Vue vs React: Best Choice for Startups
by jnwr on Thursday November 19, 2020 @10:38AM
(#25150564)
Important note here is using $parent is bad form and discouraged in the vue docs[0]
0. https://vuejs.org/v2/style-guide/#Implicit-parent-child-comm...