Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to export a constant in javascript

export const CONNECT_RANGE = connectRange(Range);

//And when you want to consume it
import { CONNECT_RANGE } from './myModule';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #export #constant #javascript
ADD COMMENT
Topic
Name
9+7 =