Currently, some of the boolean changes are prone to errors during rerenders (like the last one), so to adhere to best practice, it should be changed. I also think refactoring ones like the first one would also be good to encourage better readability:
Currently, some of the boolean changes are prone to errors during rerenders (like the last one), so to adhere to best practice, it should be changed. I also think refactoring ones like the first one would also be good to encourage better readability: