Improvement for the lesson on the hook PhoneNumber.js

Hello for the lesson on the state hook: https://www.codecademy.com/courses/react-101/lessons/the-state-hook/exercises/use-state-setter-outside-of-jsx

When we test the input it work well but once you have write a digit we can’t delete it and there will be always one digit. It take time for me to understand that the regex is not valid if you try to delete and so the state is never update.

So i thing you can add a 4th point where we have to edit the regex like this /^\d{1,10}$/ => /^\d{0,10}$/.
And like this the input can be blank if wanted.
Don’t know if it was wanted but it helped me a lot to understand what is happening.

Sorry for my english :grin: