Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

export e import javascript

//There two types of imports
export default class || function || variable
//When you use export default, export one thing only and import something like this:
import thing from "path"
//-------------------------------------
export { class || function || variable }
//With this we can especify what we want import
import { thing1, ...} from "path"
 
PREVIOUS NEXT
Tagged: #export #import #javascript
ADD COMMENT
Topic
Name
6+5 =