diff --git a/1-exercise-solutions/lesson-04/4b.html b/1-exercise-solutions/lesson-04/4b.html
index cb3e6c3..20fe0bf 100644
--- a/1-exercise-solutions/lesson-04/4b.html
+++ b/1-exercise-solutions/lesson-04/4b.html
@@ -24,7 +24,7 @@
function App() {
const [isButtonOn, setIsButtonOn] = React.useState(true);
- function switchButtonOn() {
+ function toggleButton() {
// Another solution is: setIsButtonOn(!isButtonOn);
if (isButtonOn) {
setIsButtonOn(false);
@@ -36,7 +36,7 @@
return (
diff --git a/1-exercise-solutions/lesson-04/4c.html b/1-exercise-solutions/lesson-04/4c.html
index 68d5ac3..a24317a 100644
--- a/1-exercise-solutions/lesson-04/4c.html
+++ b/1-exercise-solutions/lesson-04/4c.html
@@ -33,7 +33,7 @@
function App() {
const [isButtonOn, setIsButtonOn] = React.useState(true);
- function switchButtonOn() {
+ function toggleButton() {
if (isButtonOn) {
setIsButtonOn(false);
} else {
@@ -48,7 +48,7 @@
return (