0

Are the same rules for hooks in React applicable to React Native:

There are 3 rules for hooks:

Hooks can only be called inside React function components. [Add React Native Components] Hooks can only be called at the top level of a component. Hooks cannot be conditional

I have search in vain for this on the web. If you also point me to a good site for using hooks in React Native or differences with hooks (if any) in React Native.

Thanks in advance.

I have searched the web for React Native rules for hooks and can only find the rules for React.

1
  • 1
    Yes, the same rules apply.
    – jsejcksn
    Commented May 22 at 23:32

1 Answer 1

0

Hooks function the same in react native and react.

Not the answer you're looking for? Browse other questions tagged or ask your own question.