Check out example codes for "after effects how to parent only one property". It will help you in understanding the concepts better.

Code Example 1

x = thisComp.layer("A").transform.position[0];
[value[0]+x, value[1]]

Learn ReactJs, React Native from akashmittal.com