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

Code Example 1

//HTML
<my-tag id="yourId" some-attr="someval"></my-tag>

//CSS
my-tag {
	color: red;
}

Learn ReactJs, React Native from akashmittal.com