Build Instagram login page with Next.js and TailwindCSS Part 6— Login button
Using the React useRef to get all the values from different input fields
In this article, we are going to add the Login button. We will use useRef to get the values from the form, detect whether both input fields are filled in. If yes, turn the button background color to a darker blue, otherwise lighter blue.