December 2017
Beginner to intermediate
376 pages
7h 53m
English
Since props must be declared in the template where the component is used, prop data can only pass from a parent to a child. This is why you shouldn't mutate a prop - since data flows down, the change will not be reflected in the parent, and therefore you will have different versions of what is meant to be the same bit of state.
If you do need to tell the owner to change the data, there is a separate interface for passing data from a child to a parent, which we'll see later.
Read now
Unlock full access