Bagaimana cara memeriksa apakah URL memiliki hash dalam reaksi
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}
Thankful Tortoise
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}