0

I'm following a guide for a hangman game built using react...

I have a useEffect function which contains event listeners for keypresses.

However when viewing the page on mobile devices, there is no way to bring up the keyboard to actually press the keys.

isherwood
  • 58,414
  • 16
  • 114
  • 157
Liiaam93
  • 195
  • 1
  • 2
  • 10

1 Answers1

0

this is a tricky question

Try using the .prompt() method

see this tutorial

https://www.w3schools.com/jsref/met_win_prompt.asp