Check out example codes for "html to css converter". It will help you in understanding the concepts better.

Code Example 1

'https://htmltocss.github.io/'  this one works

Learn ReactJs, React Native from akashmittal.com