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

Code Example 1

Use Netbeans instead

Code Example 2

Use Eclipse instead!

Code Example 3

good choice

Code Example 4

I see you are a man of culture...

Code Example 5

I see you are a man of taste as well

Learn ReactJs, React Native from akashmittal.com