Elements vs components
Në shqip: Elementet dhe komponentët
ShpjegimiSQ
Një komponent është funksioni (Karta); një element është objekti që del kur e përdor (<Karta />) — një përshkrim i asaj që duhet shfaqur. React-i i krahason elementet për të vendosur çfarë të ndryshojë në faqe.
EnglishEN
A component is the function (Card); an element is the object you get when you use it (<Card />) — a description of what to show. React compares elements to decide what to change on the page.
Si ta mendosh
Komponenti është kallëpi i biskotave; elementi është një biskotë e caktuar.
Lexoje në anglisht
The component is the cookie cutter; the element is one particular cookie.