Using TypeScript for Building Polymorphic React Components

Using TypeScript for Building Polymorphic React Components

Extend your knowledge of reusable components to include strongly typed polymorphic components

Intermediate

28 Lessons

8h

Certificate of Completion

Extend your knowledge of reusable components to include strongly typed polymorphic components

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

35 Playgrounds
5 Quizzes

This course includes

35 Playgrounds
5 Quizzes

Course Overview

TypeScript has become the de facto way to build modern web applications. With the rise of design systems and reusable components, building strongly typed polymorphic components is a desirable skill for the modern web engineer. This course provides a bottom-up approach to building strongly typed polymorphic components. You will start with a naive implementation of a polymorphic component and explore its drawbacks. You will then use TypeScript to provide a production-ready component interface. Finally, you’...Show More

TAKEAWAY SKILLS

React.js

React Components

Javascript

What You'll Learn

An understanding of intermediate TypeScript utility types and TypeScript generics

Hands-on experience building polymorphic React components

A working knowledge of strongly typed polymorphism in React

The ability to enforce valid HTML element attributes based on a polymorphic prop

What You'll Learn

An understanding of intermediate TypeScript utility types and TypeScript generics

Show more

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

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_

Emma Bostian 🐞

@EmmaBostian

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