It would be convenient if the format prop could be a function instead of a string, so that using the numbro formatting strings wouldn't be mandatory. The format() function could be called instead of numbro.format() inside of the internal toFormattedString() method when it's a function, otherwise it could just function the same way that it does now.
It would be convenient if the
formatprop could be a function instead of a string, so that using the numbro formatting strings wouldn't be mandatory. Theformat()function could be called instead ofnumbro.format()inside of the internaltoFormattedString()method when it's a function, otherwise it could just function the same way that it does now.