```js
function Editor({ data: { page } }: EditorProps) {
  if (page == null) throw Error('missing page data in editor')
  const [editorValue, setEditorValue] = useState(() => {
}
```

I believe this should be a valid case, because throw. 
'which is neither a React function component or a custom ' +
                  'React Hook function.',
              );
            } else if (codePathNode.type === 'Program') {
              
              
              
            } else {
              
              
              
              
              
              if (isSomewhereInsideComponentOrHook) {
                context.report(
                  hook,
                  `React Hook "${context.getSource(hook)}" cannot be called ` +
                    'inside a callback. React Hooks must be called in a ' +
                    'React function component or a custom React Hook function.',
                );
              }
            }
          }
        }
      },
      
      
      
      
      CallExpression(node) {