Check out example codes for "what is ruby used for". It will help you in understanding the concepts better.

Code Example 1

every user using ruby for three reason:
good syntax
ruby and rails
just because is unique

Learn ReactJs, React Native from akashmittal.com