Check out example codes for "whats harry potter's house". It will help you in understanding the concepts better.

Code Example 1

Gryffindor

Learn ReactJs, React Native from akashmittal.com