Building User Interfaces and Functions with TypeScript and React

Building User Interfaces and Functions with TypeScript and React

Delve into TypeScript generics and learn to build reusable functions and React components for searching, sorting, and filtering data, enhancing both business logic and UI efficiency.

Intermediate

29 Lessons

20h

Certificate of Completion

Delve into TypeScript generics and learn to build reusable functions and React components for searching, sorting, and filtering data, enhancing both business logic and UI efficiency.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

1 Project
1 Assessment
28 Playgrounds
7 Quizzes

This course includes

1 Project
1 Assessment
28 Playgrounds
7 Quizzes

Course Overview

TypeScript’s generics are a powerful tool that enables developers to ensure their code is flexible and reusable. Using generics can help developers manage exactly what types are used in functions and components around the application. In this course, we’ll first get an overview of TypeScript generics and create generic search and sort functions. Next, we’ll create a React component for searching that would leverage our generic search function. Then, we’ll create a generic function and a React component for...Show More

What You'll Learn

An understanding of generics in TypeScript

A working knowledge of how to create React components that accept generic arguments

Hands-on experience building React components with TypeScript

Ability to write, modify, and extend generic TypeScript functions

Ability to understand and describe various UI designs

An understanding of the tradeoffs involved in searching, sorting, and filtering functions

What You'll Learn

An understanding of generics in TypeScript

Show more

Course Content

1.

Introduction

Get familiar with advanced TypeScript generics for creating reusable functions and React components.
2.

TypeScript Generics Introduction

Unpack the core of TypeScript generics to enhance code reusability and type safety.
3.

Creating Mock Data for the Application

Go hands-on with creating and rendering mock data to enhance application testing.
4.

Building a Generic Search Function and UI Component

Enhance search functionalities, create a dynamic search input, and implement a debounce mechanism.
5.

Building a Generic Sort Function and UI Component

Take a look at building reusable sort functions and UI components with TypeScript and React.
6.

Building a Generic Filter Function and UI Component

3 Lessons

Investigate crafting versatile filter functions and dynamic React components for effective UI filtering.
7.

Organizing Everything into a Single Generic Component

7 Lessons

Master the steps to unify and streamline UI components using a single orchestrating component.
8.

Course Review and Final Comments

1 Lesson

Get familiar with developing reusable functions in TypeScript and React, using generics.
9.

Appendix

2 Lessons

Look at setting up the external environment and creating a custom TypeScript function.

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Souvik Kundu

Front-end Developer

Eric Downs

Musician/Entrepeneur

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath