Skip to content

Commit

Permalink
import shop module, replace child for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Apr 25, 2023
1 parent 52cb1e3 commit 74e1ea3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import header from "./modules/header.js";
import footer from "./modules/footer.js";
import home from "./modules/home.js";
import home from "./modules/pages/home.js";
import shop from "./modules/pages/shop.js";

const body = document.querySelector('body');
const main = document.createElement('main');
Expand All @@ -14,3 +15,6 @@ body.append(
main,
footer(),
);

// temporal function for testing
main.replaceChildren(...shop());

0 comments on commit 74e1ea3

Please sign in to comment.