标签: reactjs react-native react-hooks
我有一个自定义钩子,需要在另一个钩子内调用...
const cancelButtonOnPressRef = useRef(() => { // any ideas? useShowCancelMenu(); });
提前致谢。
答案 0 :(得分:1)
const useNameYourCustomHook = () => { const ref = useRef(); useShowCancelMenu(ref); };