Creating A New React Component That Calls The GraphQL API
The frontend web app code is located in the code/web-app/src
directory. When authenticate the Authenticated
component in the code/web-app/src/components
acts as the main container.
Let's replace the Products
sample component with a new component, called Hello
, and make it call the hello GraphQL operation and render the response.
Create a new file Hello.tsx
in the components directory.
Last updated