Check out example codes for "how to show a html page only once". It will help you in understanding the concepts better.

Code Example 1

if (localStorage.getItem("visited")) {
    window.location.href = "webPlatform.html";
}
localStorage.setItem("visited", "true");

Learn ReactJs, React Native from akashmittal.com