You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I am Bit confused when developing app using react hook is where to put function declaration either inside the component or outside. Some argue that if you have dependency then put it inside component otherwise outside. But if we see useReducer our reducer is outside the component.
i just want good practice about that. what in your mind when declare function mean how you decide.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am Bit confused when developing app using react hook is where to put function declaration either inside the component or outside. Some argue that if you have dependency then put it inside component otherwise outside. But if we see useReducer our reducer is outside the component.
i just want good practice about that. what in your mind when declare function mean how you decide.
The text was updated successfully, but these errors were encountered: