So überprüfen Sie, ob die URL Hash im React hat
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}
Thankful Tortoise
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}