Tutorial 3 - Ant design & ReactJS dashboard: Composition vs Inheritance (Part 2) & Card component

Опубликовано: 08 Октябрь 2019
на канале: Shrideep ghag
10,685
93

Tutorial 2 - ReactJS Composition vs Inheritance (Part 1) & usage of ant design Tree component-    • Tutorial 2 - Ant design & ReactJS das...  


Code available on github: https://github.com/Shrideep/react-ant...

I will be making tutorial on React handle event, hooks and GRAND (GRAPHQL, REACT, APOLLO, Neo4j Database) Stack so please subscribe, hit bell icon and don't forget to like and share this video. Thanks!

ES6 / ES2015 - Classes - Inheritance

“JavaScript classes, introduced in ECMAScript 2015, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript.”
However, “The super keyword is used to call corresponding methods of super class. This is one advantage over prototype-based inheritance.”
More detials on below link -https://developer.mozilla.org/en-US/d...

React has a powerful composition model, and they recommend using composition instead of inheritance to reuse code between components.

As mentioned in react Docs - “At Facebook, we use React in thousands of components, and we haven’t found any use cases where we would recommend creating component inheritance hierarchies.”
https://reactjs.org/docs/composition-...

Ant Design is created for enterprise internal desktop applications and
committed to improving the experience of users, designers and developers.

Ant design currently has more than 51580 + star on github.
Ant Design Card component link: https://ant.design/components/card/


Смотрите видео Tutorial 3 - Ant design & ReactJS dashboard: Composition vs Inheritance (Part 2) & Card component онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Shrideep ghag 08 Октябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 10,685 раз и оно понравилось 93 людям.