Check out example codes for "javascript how to set a textbox value to nothing". It will help you in understanding the concepts better.
Code Example 1
<input id="text">
<button onclick="myFunction()">Run</button>
<script>
function myFunction() {
document.getElementById("text").value = "";
}
</script>
Learn ReactJs, React Native from akashmittal.com