experimenting with imports
This commit is contained in:
parent
7822ec7b29
commit
e4c6629f1f
2 changed files with 10 additions and 0 deletions
3
main.js
3
main.js
|
@ -1,2 +1,5 @@
|
|||
import defaultExport from "painting/shape.js"
|
||||
|
||||
document.getElementById("main").innerText = "Yep";
|
||||
|
||||
let s1 = new Shape();
|
||||
|
|
7
painting/shape.js
Normal file
7
painting/shape.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Shape {
|
||||
constructor() {
|
||||
window.document.getElementById("main").innerHTML = "Works";
|
||||
}
|
||||
}
|
||||
|
||||
export default Shape;
|
Loading…
Add table
Add a link
Reference in a new issue