+ 2

Button not changing colour after logging out | REACT | Laravel

When I am logged in the button has a specific colour, but when I am logging out the button is still showing the previous colour. I have tried changing a state value on button click so that the components re-render but it's not re-rendering. There is link for logout like this <Link to=''">Logout</Link>. Am I missing something?

19th Jul 2022, 8:46 AM
NBinte
NBinte - avatar
1 Respuesta
+ 3
Can you post your code, just this line dont tell us enought. If you cant post full code, for private reasons post just part even with changed data, but make sure problem exist. You can use some web editor what support react to send us code.
19th Jul 2022, 9:13 AM
PanicS
PanicS - avatar