JSFiddle - React, Tailwind, and code Playground

by Marcos vini

JavaScript

if(event.currentTarget.performance.navigation.type == 1)
{
     alert("okk teste");
}
if(event.currentTarget.performance.navigation.type == 2)
{
      alert("ok byby");
}