Introduction

Building a login page for the Smart Budget Tracker app using the reusable components we discussed in our previous post — please check that post out before following along here.

To build this component, we need two text inputs (for email/username and password), a login button, and API calls to send the authentication request and receive the authorization response.

Defining the Login Page Interface and Setting Up Required Hooks

Below is LoginForm, the required fields for the login page — both fields accept strings.