Этот материал находится в платной подписке. Оформи премиум подписку и смотри или слушай Build Polymorphic Components with React and Typescript, а также все другие курсы, прямо сейчас!
Премиум
  • Урок 1. 00:02:43
    Introduction
  • Урок 2. 00:02:52
    The course in a nutshell
  • Урок 3. 00:12:01
    End game: The exercise you will solve
  • Урок 4. 00:03:27
    What are polymorphic components?
  • Урок 5. 00:08:18
    Build your first polymorphic component
  • Урок 6. 00:04:55
    The problems with this simple polymorphic component implementation
  • Урок 7. 00:17:33
    Typescript Generics: A recap to help solve some of our Polymorphic issues
  • Урок 8. 00:06:07
    Representing the polymorphic prop with a generic
  • Урок 9. 00:08:00
    Receiving only valid component props based on the generic prop
  • Урок 10. 00:01:37
    Extend the component to receive other relevant props
  • Урок 11. 00:03:06
    Ensuring type safety for the default generic case
  • Урок 12. 00:05:15
    Can your polymorphic component render a custom component?
  • Урок 13. 00:09:50
    Typescript recap: Omit, Pick and keyof
  • Урок 14. 00:11:51
    Build a robust polymorphic component with its own props
  • Урок 15. 00:05:07
    Passing in your custom props to the polymorphic component
  • Урок 16. 00:04:15
    Mapping out the strategy for the reusable utility
  • Урок 17. 00:10:30
    Implementing the reusable utility
  • Урок 18. 00:03:25
    The problem(s) we want to tackle
  • Урок 19. 00:05:38
    Adding the ref type
  • Урок 20. 00:08:21
    Type annotation for strongly typed refs
  • Урок 21. 00:01:24
    Its now your turn!