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

Code Example 1

document.getElementById("myButton").innerHTML="new button text";

Code Example 2

#search {
    width: 20em;  height: 2em;
}

Learn ReactJs, React Native from akashmittal.com