The react-intl can format numbers based on locale. Now I am trying to add an input component in which users can enter number and it will be formatted to contain commas in appropriate places. For this in the handleChange, I want to parse this formatted number back to a Javascript number.
After going through the docs I could not find any way to do this. How can I parse formatted numbers? How do developers usually handle this flow of parsing and formatting dates and numbers?