Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

export component react

//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 #component #react
ADD COMMENT
Topic
Name
3+2 =