This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
For now, this code works fine. But need your advice from a performance and code structure perspective. const setPopup = useSetRecoilState(popupState);
const handleForgetPassword=()=>{
setPopup(<ForgetPassword/>);
} |
Beta Was this translation helpful? Give feedback.
Answered by
drarmstr
Jun 7, 2022
Replies: 1 comment
-
In general non-mutable objects should be used as state so state changes are properly captured. It might make sense to use a handle or ID to reference components. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In general non-mutable objects should be used as state so state changes are properly captured. It might make sense to use a handle or ID to reference components.