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

Code Example 1

input[type="text"]:disabled {
	background-color: #dddddd;
}

Code Example 2

<input type="text" name="username" value="admin" >

<style type="text/css">
input[name=username] {
    pointer-events: none;
 }
</style>

Learn ReactJs, React Native from akashmittal.com