Answers for "how to check if url has hash in react"

1

how to check if url has hash in react

if(window.location.hash) {
  // Fragment exists
} else {
  // Fragment doesn't exist
}
Posted by: Guest on June-03-2021

Code answers related to "how to check if url has hash in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language