I have a postal code that needs to be formatted using this format: '999-99'. Works great if you render an input, but in some places I just want to render some text and format it in exactly same manner.
My hacky solution for now is that I copied the formatValue function from the github repo along with some other functions it depends on and used it like this:
Hello!
Feature request
Export
formatValue
function from the main moduleWhy?
I have a postal code that needs to be formatted using this format: '999-99'. Works great if you render an input, but in some places I just want to render some text and format it in exactly same manner. My hacky solution for now is that I copied the
formatValue
function from the github repo along with some other functions it depends on and used it like this:This works 'fine' for now, but feels really bad for obvious reasons.
I could provide provide new type definitions if the above could be done 👍