So exportieren Sie eine Konstante in JavaScript

export const CONNECT_RANGE = connectRange(Range);

//And when you want to consume it
import { CONNECT_RANGE } from './myModule';
Avinash Tripathy