File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function CheckboxSample() {
86
86
const [ isChecked , setIsChecked ] = React . useState ( false ) ;
87
87
88
88
const onClick = ( ) => {
89
- setChecked ( ! setIsChecked ) ;
89
+ setIsChecked ( ! isChecked ) ;
90
90
} ;
91
91
92
92
const msg = isChecked ? "Checked" : "Not checked" ;
@@ -141,8 +141,8 @@ function App(props) {
141
141
< br />
142
142
143
143
< 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.
146
146
Learn more about React in my ${ " " } < a href ="${ RESOURCES_URL } "> React resources</ a > ${ " " } guide.
147
147
</ p >
148
148
</ div >
You can’t perform that action at this time.
0 commit comments