Udemyintermediateen

Build Polymorphic Components with React and Typescript

Master React with TypeScript! This course covers intermediate to advanced concepts. Includes a 50+ page PDF for easy learning. Boost your React skills today.

4.8(208)
1,717students
2h 15m
Certificate
Ohans Emmanuel
Ohans EmmanuelStaff Engineer and Published Author.

Course Content

Build Polymorphic Components with React and Typescript is an intermediate-level Udemy course taught by Ohans Emmanuel. It runs 2h 15m, is taught in English, and includes a certificate of completion. Learners rate it 4.8 out of 5 from 208 reviews, with 1,717 students enrolled. It is a paid course, last updated May 2022.

Unlock advanced React component techniques and leverage patterns from popular open-source libraries. Dive deep into polymorphic components – you've likely used them already! If you're familiar with Material UI's component prop or Chakra UI's as prop, you've already interacted with this powerful concept.

In this course, you'll master building your own reusable polymorphic components capable of rendering as any valid HTML element. Go beyond basic implementation and learn to strongly type the allowed props based on the provided element type. We'll explore numerous use cases and edge cases to help you create robust, reusable React components with an exceptional developer experience.

Key takeaways:

  • Build highly flexible reusable components: Learn to create components adaptable to various HTML elements.
  • Design System Development: Apply your newfound skills to building your own comprehensive design system.
  • Advanced TypeScript for Polymorphism: Explore intermediate TypeScript concepts to achieve truly strongly typed polymorphic components.

Prerequisites:

  • Solid understanding of React basics.
  • Familiarity with TypeScript basics (understanding of "types" is essential).

Who is this course for?

  • React developers building design systems.
  • React developers focused on creating reusable components.
  • React TypeScript developers looking to enhance their skills.
  • Intermediate React developers eager to expand their knowledge.

Course Summary:

This isn't a beginner's course. A foundational understanding of React and TypeScript is required. While we'll cover intermediate TypeScript concepts, the focus is on practical, effective application. You'll learn to construct a polymorphic component that renders as any valid HTML element. The real challenge lies in dynamically typing its props based on the element type – restricting props, type-safe handling of passed refs, and building reusable utilities for other components. We'll cover a wide range of use cases and edge cases to ensure you build robust, developer-friendly React components.

$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

5.0
4h 27m
intermediate
pluralsight
5.0(37)
15h 59m
all
5.0(24)
20h 31m
expert
5.0(27)
4h 48m
beginner