Check out example codes for "why doesnt my HTML button work". It will help you in understanding the concepts better.

Code Example 1

<!--You can't do it like this:-->
<button onclick="outlook.com">Outlook</button>
<!-- Like this: (the document.location part) Although I can't explain why. -->
<button onclick ="document.location='outlook.com'">Outlook</button>

Learn ReactJs, React Native from akashmittal.com