Check out example codes for "install code command on mac". It will help you in understanding the concepts better.

Code Example 1

Open VCode
press CMD + SHIFT + P
type 'shell command' 
select 'Install code command in path'
navigate to any project from the terminal and type 'code .'

Learn ReactJs, React Native from akashmittal.com