We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aed9d9 commit 0cc6fd4Copy full SHA for 0cc6fd4
src/index.ts
@@ -1,3 +1,22 @@
1
+import { UserEdit } from "./views/UserEdit";
2
+import { User } from "./models/User";
3
+
4
+const user = User.buildUser({ name: "Pippa", age: 18 });
5
6
+const root = document.querySelector("#root");
7
8
+if (root) {
9
+ const userEdit = new UserEdit(root, user);
10
+ userEdit.render();
11
12
+ console.log(userEdit);
13
+} else {
14
+ throw new Error("Root element not found");
15
+}
16
17
18
+/*
19
20
import { UserList } from "./views/UserList";
21
import { Collection } from "./models/Collection";
22
import { UserProps, User } from "./models/User";
@@ -17,3 +36,5 @@ users.on("change", () => {
36
}
37
});
38
users.fetch();
39
40
+*/
0 commit comments