#Working on the modern bank application.

3 messages · Page 1 of 1 (latest)

whole swan
#

I expected the code to work properly, because I wrote exactly what was shown in the video, but there seems to be a missing value. This is part of the code for the navbar.

!!help.codeblocks

This is the error:
C:\Users\raven\Desktop\bank_modern_app\bank_modern_app\src\components\Navbar.jsx: Unexpected token (44:18)
47 |

This is the part of the code that's causing it:
onClick={() = setToggle((prev) =>
^
!prev)}
/>

The libraries being used are nodejs, and react I think.

naive ingot
#

Change the onClick line to: onClick={() => setToggle((prev) => !prev)}

whole swan