DEV Community

Discussion on: Getting around prop immutability in Vue.js

warhead5555 profile image

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: