[modern-react] 리액트 스터디 파일 추가
This commit is contained in:
6
modern-react/my-modern/module_dynamic.js
Normal file
6
modern-react/my-modern/module_dynamic.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import('./App.js').then(app => {
|
||||
console.log(app.getTriangle(10, 5)); // 결과: 25
|
||||
|
||||
const a = new app.Article();
|
||||
console.log(a.getAppTitle()); // 결과: React 앱
|
||||
});
|
||||
Reference in New Issue
Block a user