cómo verificar si la URL tiene hash en reaccionar

if(window.location.hash) {
  // Fragment exists
} else {
  // Fragment doesn't exist
}
Thankful Tortoise