When my basic front end auth login react component page loads for the first time, I have an issue where a form appears on the login side of things that I only want to show once the app side has rendered upon successful login.
- Once logged in, it should render the app component.
- I have separate CSS files for login and app styling: login.css and app.css.
- In my HTML document, I added code for the form to submit user input for the app, but I don't want this form to be visible on the login side.
- Despite trying various methods like setting
visibility hidden
in login.css andvisibility:visible
in app.css, or usingopacity:0
in login.css andopacity:100
in app.css, the login.css seems to override the app.css no matter what I try.
This is all new to me, so apologies if this is a simple question. Any help would be greatly appreciated. Thank you!