Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

React import multiple components from a folder

//Create a new file in folder called "index.js" in your Components folder, then do this below.
import { Component1 } from "./Component1";
import { Component2 } from "./Component2";

export {
    Component1,
    Component2
}
 
PREVIOUS NEXT
Tagged: #React #import #multiple #components #folder
ADD COMMENT
Topic
Name
1+6 =