Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react export multiple components from index

export {default as Comp1} from './Comp1.jsx';
export {default as Comp2} from './Comp2.jsx';
export {default as Comp3} from './Comp3.jsx';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #export #multiple #components #index
ADD COMMENT
Topic
Name
6+3 =