Skip to content

Commit 01139d5

Browse files
committed
refactor: improve syntax
1 parent 120fade commit 01139d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solutions/button-toggle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const Toggle = () => {
77

88
const handleClick = () => {
99
setToggle(!toggle);
10-
}
10+
};
1111

1212
return (
1313
<button type="button" onClick={handleClick}>
1414
{toggle ? 'ON' : 'OFF'}
1515
</button>
1616
);
17-
}
17+
};
1818

1919
ReactDOM.render(
2020
<Toggle />,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy