React & React Native

Rules of Hooks

Në shqip: Rregullat e hooks-eve

ShpjegimiSQ

Hooks-et kanë dy rregulla: thirri vetëm në nivelin e sipërm të komponentit (jo brenda if, for ose funksioneve të tjera), dhe vetëm nga komponentët ose custom hooks. React-i i njeh sipas radhës së thirrjes.

EnglishEN

Hooks have two rules: call them only at the top level of a component (not inside if, for or other functions), and only from components or custom hooks. React identifies them by the order they're called.

Si ta mendosh

Si radha e lojtarëve në gjuajtjen e penalltive: duhet të jetë e njëjtë çdo herë.

Lexoje në anglisht

Like the penalty shoot-out order: it must be the same every time.

Terma të lidhur