how to check if url has hash in react code example
Example: how to check if url has hash in react
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}
if(window.location.hash) {
// Fragment exists
} else {
// Fragment doesn't exist
}