I'm trying to retain a phone number after button click in react.
The package used here is npm react-phone-input-2
import PhoneInput from 'react-phone-input-2';
<PhoneInput />
After entering a phone number, I'm clicking on next which takes to password page.
After coming into password page, I'm going to click on back button which redirects to phone number input page.
But after returning to the phone number page, the entered values is not getting retained.