Skip to content

Commit 2e573c3

Browse files
committed
fix: update main.js
1 parent 9a45098 commit 2e573c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function CheckboxSample() {
8686
const [isChecked, setIsChecked] = React.useState(false);
8787

8888
const onClick = () => {
89-
setChecked(!setIsChecked);
89+
setIsChecked(!isChecked);
9090
};
9191

9292
const msg = isChecked ? "Checked" : "Not checked";
@@ -141,8 +141,8 @@ function App(props) {
141141
<br />
142142
143143
<p>
144-
This is a static site hosted for free on GitHub Pages.
145-
See the ${" "}<a href="${REPO_URL}">repo</a>${" "}on GitHub and add this template to your own projects.
144+
This is a static site hosted for free on GitHub Pages.
145+
See the ${" "}<a href="${REPO_URL}">repo</a>${" "}on GitHub and add this template to your own projects.
146146
Learn more about React in my ${" "}<a href="${RESOURCES_URL}">React resources</a>${" "}guide.
147147
</p>
148148
</div>

0 commit comments

Comments
 (0)