Check out example codes for "ionic build". It will help you in understanding the concepts better.

Code Example 1

ionic cordova build <platform> [options]

Learn ReactJs, React Native from akashmittal.com