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

Code Example 1

Sass, LESS and Stylus

Learn ReactJs, React Native from akashmittal.com