Use urqls useMutation to Create Github Issues in a React App

InstructorIan Jones

Share this video with your friends

Send Tweet

In this lesson, we create an input component so that the user can create comments by typing into an input.

We create a GraphQL mutation with urql's useMutation hook. We pass the mutation query to the hook. The hook returns a function that we can pass to our input to fire when the user submits the form.