DEV Community

Dharan Ganesan
Dharan Ganesan

Posted on

Day 98: OTP

Question

Create React or Angular code snippet that should allow the user to add OTP as below

Image description

Hint: write function to listen keyboard left and right arrow key codes and focus on the previous or next input accordingly.

Check the comment below to see answer.

Top comments (1)

Collapse
 
dhrn profile image
Dharan Ganesan