Form management

Before we can identify the user when we receive a request, we need to create a form to collect credentials.

We will use Formikarrow-up-right to build our forms.

$ yarn add @types/react formik

We need 2 components to build our form, Input and Buttonwhich we can then use to build our form. We send the request to the server using useMutationarrow-up-right.

We also use React Routerarrow-up-right and Lazyarrow-up-right:

This cover everything needed to interact with the GraphQL API and display the results.

circle-info

formarrow-up-right branch and pull requestarrow-up-right with comments available on GitHub.

Last updated