For those using create-react-app wishing to refrence their .env file variables without the REACT_APP prefix.
REACT_APP_MY_ENVIRONMENT_VARIABLE_A=foo
REACT_APP_MY_ENVIRONMENT_VARIABLE_B=bar
import {
MY_ENVIRONMENT_VARIABLE_A,
MY_ENVIRONMENT_VARIABLE_B
} from 'env-create-react-app';
console.log(MY_ENVIRONMENT_VARIABLE_A);
console.log(MY_ENVIRONMENT_VARIABLE_B);
foo
bar