HomeCoursesBuilding User Interfaces and Functions with TypeScript and React

Intermediate

20h

Updated 5 months ago

Building User Interfaces and Functions with TypeScript and React
Save

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.
Join 2.7 million developers at
Overview
Content
Reviews
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 sorting and filtering, respectively. Finally, we’ll bring all these functionalities together to create one component that can manage searching, sorting, and filtering of any data passed to it. By the end of this course, you'll know how to write generic TypeScript functions and craft React components that use TypeScript generics. You’ll also be able to deploy concise solutions in both business logic and user interface senses for searching, sorting, and filtering data on client side in applications.
TypeScript’s generics are a powerful tool that enables developers to ensure their code is flexible and reusable. Using generics ...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
An understanding of generics in TypeScript

Show more

Content

1.

Introduction

1 Lessons

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

2.

TypeScript Generics Introduction

2 Lessons

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

3.

Creating Mock Data for the Application

2 Lessons

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

4.

Building a Generic Search Function and UI Component

5 Lessons

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

5.

Building a Generic Sort Function and UI Component

6 Lessons

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 Lessons

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.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.

Course Author:

Developed by MAANG Engineers
Every Educative resource is designed by our team of ex-MAANG software engineers and PhD computer science educators — subject matter experts who’ve shipped production code at scale and taught the theory behind it. The goal is to get you hands-on with the skills you need to stay ahead in today's constantly evolving tech landscape. No videos, no fluff — just interactive, project-based learning with personalized feedback that adapts to your goals and experience.

Trusted by 2.7 million developers working at companies

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.

Adaptive Learning

Explain with AI

AI Code Mentor

Free Resources

FOR TEAMS

Interested in this course for your business or team?

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