sir aapne code bahot simple treeke se samjhaya 2 baar video dekh kar pura samaj aa gya. aapka reactjs tutorial is all time good is begnier in youtube. thank you sir.
The reason the alert is triggered before the board is fully rendered is due to the asynchronous nature of state updates in React. When you call setState(), React schedules the state update, but it doesn’t happen immediately. However, since the code continues to execute, the alert() is triggered before the actual DOM is updated and the re-render happens. To fix this issue and ensure the board update is visually complete before the alert is shown, you can add a slight delay using setTimeout. This will allow the DOM to fully render the new state before the alert is triggered.
Problem statement: After each click change the background color of clicked block. After winning, Cross the respective row/column/diagonal with a straight line. Please post the code if anyone implemented it.
After player X win, the game should end but it's not ending. Even after winning, if user click on remaining block, alert is showing player win.. please fix this
sir aapne code bahot simple treeke se samjhaya 2 baar video dekh kar pura samaj aa gya.
aapka reactjs tutorial is all time good is begnier in youtube.
thank you sir.
the way you explain is really impresive.
Awesome tutorial Sir... Thank you so much
simple and to the point, thank you :)
The reason the alert is triggered before the board is fully rendered is due to the asynchronous nature of state updates in React. When you call setState(), React schedules the state update, but it doesn’t happen immediately. However, since the code continues to execute, the alert() is triggered before the actual DOM is updated and the re-render happens.
To fix this issue and ensure the board update is visually complete before the alert is shown, you can add a slight delay using setTimeout. This will allow the DOM to fully render the new state before the alert is triggered.
Very helpful video, Thanks 🔥🔥🔥🔥
The concept clearity you provide is just too good bro.
Amazing sir ❤
WOW, it's amazing
link of source code dose not work
Source Code link is not working.
Bhai please nextjs ka playlist start kro na using the next-auth
Bro React Router Dom Has got some new updates , Please Make a video on that...
Problem statement: After each click change the background color of clicked block. After winning, Cross the respective row/column/diagonal with a straight line. Please post the code if anyone implemented it.
Nice Brother
After player X win, the game should end but it's not ending. Even after winning, if user click on remaining block, alert is showing player win.. please fix this
sir aap code bta degiye kaise hoga.
ki alert baad main remder kre
game still have lots of bugs that you doesnt explained or resolved.