Question
Create React or Angular code snippet that should allow the user to add OTP as below
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)
Solution
Angular: stackblitz.com/edit/stackblitz-sta...