Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

export variables react

// Export:
export const test = true;
  //or
const test = true;
export {test}

// Import:
import {test} from 'fileDirectionAndFileName';
  //or
var test = require('./fileName');
 
PREVIOUS NEXT
Tagged: #export #variables #react
ADD COMMENT
Topic
Name
2+3 =