useCallback and useMemo are not required to implement this pattern. They can surely be used in this pattern like all other hooks, including custom hooks. Basically the only requirement for you to use the compound component pattern is a slight shift in thinking (and understanding it off course).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do I really need useCallback or useMemo, or do I need them only if I have performance issues?
useCallback and useMemo are not required to implement this pattern. They can surely be used in this pattern like all other hooks, including custom hooks. Basically the only requirement for you to use the compound component pattern is a slight shift in thinking (and understanding it off course).