For example if I have a hook that looks like:
const useSomeHook = (someParam, someParam2, someParam3) = {
// doStuff
};
can I have another hook that is
const useAnotherHook = () = {
const valueA = getValueA();
const valueB = getValueB();
return {
someValue,
someOtherValue,
newHook: (valueC) => useSomeHook(valueA, valueB, valueC),
}
}