Build Polymorphic Components with React and Typescript




Build Polymorphic Components with React and Typescript

Extend your knowledge of reusable components and utilise techniques used by your favourite open-source React libraries ...


Polymorphic components?


You've probably used them before ... If you've used material UI's component prop or Chakra UI's as prop, then you've already encountered polymorphic React components.


In this class, you will learn to build your own polymorphic component that can be rendered as any valid HTML element. More importantly, you will learn to strongly type its allowed props based on the supplied element type. There will be many use cases and edge cases discussed along the way to help you build more robust reusable React components with a great developer experience.


How can you apply this knowledge?


  1. Build more flexible reusable components

  2. Apply the gained knowledge to building your own design system

  3. Explore intermediate Typescript concepts for truly strongly typed polymorphic components


Prerequisites


  1. You are familiar with React basics

  2. You are familiar with Typescript basics


Who is this class for?


  1. React developers building design systems

  2. React developers building reusable components

  3. React Typescript developers

  4. Other curious intermediate React developers


In summary, this is not a beginner's course. You need to know some React, and some Typescript (the basics at least i.e., you know what "types" are).

You will learn intermediate typescript in this course. It'll be practical, effective and straight to the point - a course you will actually complete.

You will learn to build your own polymorphic component that can be rendered as any valid HTML element. That's easy! What's not so easy is strongly typing its allowed props based on the supplied element type. Restricting the component props dynamically, type-safe the passed refs to the props and even building a utility you can reuse on any other reusable component.


There will be many use cases and edge cases discussed along the way to help you build more robust reusable React components with a great developer experience.


Learn practical intermediate to advanced Typescript in React - complete with a 50+ page PDF to aid your study!

Url: View Details

What you will learn
  • Build polymorphic React components
  • Apply intermediate Typescript utility types
  • Practically use Typescript generics

Rating: 4.86364

Level: Intermediate Level

Duration: 2.5 hours

Instructor: Ohans Emmanuel


Courses By:   0-9  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z 

About US

The display of third-party trademarks and trade names on this site does not necessarily indicate any affiliation or endorsement of course-link.com.


© 2021 course-link.com. All rights reserved.
View Sitemap