index에서 import, export 하는 방법 #27
Hyevvy
started this conversation in
03.Technical
Replies: 1 comment
-
땡큐 케이! 😳 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component에서는 다음과 같이 import, export
import Layout from './..'
import Layout2 from './..'
export Layout;
export {Layout, Layout2...}
index에서는 다음과 같이 import , export
export { default as Layout } from './Layout';
export { default as Layout2 } from './Layout2';
Beta Was this translation helpful? Give feedback.
All reactions