decet wheter react app in development or production

Solutions on MaxInterview for decet wheter react app in development or production by the best coders in the world

showing results for - "decet wheter react app in development or production"
Chiara
20 Apr 2017
1if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {
2    // dev code
3} else {
4    // production code
5}