@codewell/use-development-value
v1.0.0
Published
Switch between dev and production values
Downloads
3
Readme
@codewell/use-development-value
Switch between urls in development mode and production mode
Installation
npm install @codewell/use-development-value
Basic usage
import useDevelopmentValue from '@codewell/use-development-value';
const originalValue = 'foo';
const developmentValue = 'dev-foo';
// Uses process.env.NODE_ENV to switch between the urls
const value = useDevelopmentValue(originalValue, developmentValue);