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