I was searching ways to better organise code in React application and I found it is good to use classes in creating utility functions.
Here is a program example
Utility functions
class FormattingUtils {
static formatCurrency(amount, currency) {
return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount);
}
static formatPercentage(value,