Unexpected "Hooks can only be called inside the body of a function component." · Issue #14317 · facebook/react
Do you want to request a feature or report a bug? Report a bug. What is the current behavior? Using a custom hook from a locally linked package lead to the unexpected error "Hooks can only be calle...