Callback with React #151182
Answered
by
minion-star
fireworksgod
asked this question in
Code Search and Navigation
Callback with React
#151182
-
Select Topic AreaQuestion BodyHow many steps I can pass callback function? |
Beta Was this translation helpful? Give feedback.
Answered by
minion-star
Feb 11, 2025
Replies: 2 comments 1 reply
-
Maybe It is 7 steps. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fireworksgod
-
export const PatientListContext = createContext<Patient[] | undefined>(undefined); const PatientListProvider: React.FC = ({ children }) => {
}; export default PatientListProvider; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe It is 7 steps.
It can cause runtime error.
In this case, you can use redux or context api.