Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

decet wheter react app in development or production

if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {
    // dev code
} else {
    // production code
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decet #wheter #react #app #development #production
ADD COMMENT
Topic
Name
2+5 =