Check out example codes for "where do you put style tags in html". It will help you in understanding the concepts better.

Code Example 1

// Style tags belong in <head>

Learn ReactJs, React Native from akashmittal.com