Check out example codes for "css change font awesome icon color". It will help you in understanding the concepts better.

Code Example 1

.fa {
    color: red !important;
}

Code Example 2

.<fa-icon-class> { color: red !important; }

Code Example 3

<a href="/users/edit"><i class="fa fa-cog" style="color:black !important;"></i> Edit profile</a>

Learn ReactJs, React Native from akashmittal.com