I've been diving into Vue.js, but I'm encountering an issue. Every time I try to click on the "edit age" or "change my name" button, I get the following error message.
[Vue warn]: Avoid mutating a prop directly because the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "myName"
[Vue warn]: Avoid mutating a prop directly because the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "userAge"
Check out this code snippet below.
https://codesandbox.io/s/k2197nr4o3
Please help me figure out what might be wrong in this piece of code.