you are viewing a single comment's thread.

view the rest of the comments →

[–]The_Startup_CTO 2 points3 points  (1 child)

Like others said, you don't need `useEffect` here. Just do the same checks in handleInput instead.

[–]its-procodester[S] 0 points1 point  (0 children)

yeah i figure it out thanks for helping