diff --git a/content/1-reactivity/2-update-state/react/Name.jsx b/content/1-reactivity/2-update-state/react/Name.jsx
index 384bacbe..11fa90ef 100644
--- a/content/1-reactivity/2-update-state/react/Name.jsx
+++ b/content/1-reactivity/2-update-state/react/Name.jsx
@@ -3,7 +3,9 @@ import { useEffect, useState } from "react";
export default function Name() {
const [name, setName] = useState("John");
- useEffect(() => setName("Jane"), []);
+ useEffect(() => {
+ setName("Jane");
+ }, []);
return
Hello {name}
;
-}
\ No newline at end of file
+}
diff --git a/index.html b/index.html
index 70d520fa..a96f5b92 100644
--- a/index.html
+++ b/index.html
@@ -57,6 +57,7 @@
:root {
/* bg-gray-900 */
--bg-color: rgb(17 24 39);
+ color-scheme: dark;
}
html {
diff --git a/src/app.css b/src/app.css
index 9c8919c3..488bcff2 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,7 +1,3 @@
-:root {
- color-scheme: dark;
-}
-
@tailwind base;
@tailwind components;
@tailwind utilities;
diff --git a/src/components/GithubStarButton.svelte b/src/components/GithubStarButton.svelte
new file mode 100644
index 00000000..7c2faa5b
--- /dev/null
+++ b/src/components/GithubStarButton.svelte
@@ -0,0 +1,65 @@
+
+
+
+
+
+ Star
+
+ {#if starCount !== null}
+
+ {starCount}
+
+ {/if}
+
diff --git a/src/components/Header.svelte b/src/components/Header.svelte
index fd8277dd..453f2c6b 100644
--- a/src/components/Header.svelte
+++ b/src/components/Header.svelte
@@ -1,5 +1,5 @@
@@ -9,18 +9,7 @@
Component party
-
-
+