DEV Community

Discussion on: Getting around prop immutability in Vue.js

Collapse
 
warhead5555 profile image
Warhead5555

Nice article. I found props immutability hard to understand when i first started developing in VueJs.

However, i have a note about using functions in props:
"By passing functions down as props, you are linking both parent child components together with two-way data binding. In the example above, the child now needs to know about the context of the function prop from its parent. Every time execute runs, it needs to check for and execute the callback function passed down."

I copied this text from: medium.com/js-dojo/passing-functio...