how to know whether the project is development or production mode in react code example
Example: decet wheter react app in development or production
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {
// dev code
} else {
// production code
}