Module 6 Introduction
Introduction to Module 6.0.
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo set up the project on your local machine, please follow the directions provided in the README.md
file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.
This lesson preview is part of the TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL course and can be unlocked immediately with a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL with a single-time purchase.
[00:00 - 00:07] We now have a new React project created. In this module, we'll have our client make API request to our server using GraphQL.
[00:08 - 00:18] - That's right. And in detail, we'll first construct a functional React component. Use TypeScript to check the props and state of the component.
[00:19 - 00:31] See how we can go about defining the type of the functional component. Create a fetch function to help query our GraphQL API, just like how we've seen from GraphQL Playground.
[00:32 - 00:43] See how TypeScript generics can help abstract the type of retrieved data from the API. And finally, use the fetch function we've created to run the delete listing mutation.
[00:44 - 00:45] (upbeat music)