Check out example codes for "html redirecting to previous page". It will help you in understanding the concepts better.

Code Example 1

<a href="#" onclick="javascript:window.history.back(-1);return false;">Back</a>

Learn ReactJs, React Native from akashmittal.com