Check out example codes for "is it illegal to quote other movies in your own". It will help you in understanding the concepts better.

Code Example 1

yes it is

Learn ReactJs, React Native from akashmittal.com