Check out example codes for "mdb input bg". It will help you in understanding the concepts better.

Code Example 1

<!-- Material background input -->
<div class="md-form md-bg">
  <input type="text" id="formBg1" class="form-control">
  <label for="formBg1">Example label</label>
</div>

Learn ReactJs, React Native from akashmittal.com