@stanlemon/app-template 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.test.tsx +1 -1
- package/src/index.tsx +15 -2
- package/index.html +0 -18
package/package.json
CHANGED
package/src/App.test.tsx
CHANGED
|
@@ -36,7 +36,7 @@ test("<App/>", async () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// Type some data into the input
|
|
39
|
-
userEvent.type(screen.getByLabelText("Item"), "The first item");
|
|
39
|
+
await userEvent.type(screen.getByLabelText("Item"), "The first item");
|
|
40
40
|
|
|
41
41
|
// Click the add button
|
|
42
42
|
fireEvent.click(screen.getByText("Add", { selector: "button" }));
|
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRoot } from "react-dom/client";
|
|
2
2
|
import App from "./App";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const root = createRoot(
|
|
5
|
+
document.body.appendChild(document.createElement("div"))
|
|
6
|
+
);
|
|
7
|
+
root.render(<App />);
|
|
8
|
+
|
|
9
|
+
const link = document.createElement("link");
|
|
10
|
+
link.setAttribute("rel", "stylesheet");
|
|
11
|
+
link.setAttribute("type", "text/css");
|
|
12
|
+
link.setAttribute(
|
|
13
|
+
"href",
|
|
14
|
+
"https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css"
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
document.getElementsByTagName("head")[0].appendChild(link);
|
package/index.html
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
7
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css">
|
|
8
|
-
<title>App</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<noscript>
|
|
13
|
-
You need to enable JavaScript to run this app.
|
|
14
|
-
</noscript>
|
|
15
|
-
<div id="root"></div>
|
|
16
|
-
</body>
|
|
17
|
-
|
|
18
|
-
</html>
|