```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. 
// These are variations capturing the current heuristic--
      // we only allow hooks in PascalCase, useFoo functions,
      // or classes (due to common false positives and because they error anyway).
      // We *could* make some of these invalid.
      // They probably don't matter much.
      (class {useHook = () => { useState(); }});
      (class {useHook() { useState(); }});
      (class {h = () => { useState(); }});
      (class {i() { useState(); }});
    `,
    `
      // Currently valid although we *could* consider these invalid.
      // It doesn't make a lot of difference because it would crash early.
      use();
      _use();
      useState();
      _useState();
      use42();
      useHook();
      use_hook();
      React.useState();
    `,
    `
      // Regression test for the popular "history" library
      const {createHistory, useBasename} = require('history-2.1.2');
      const browserHistory = useBasename(createHistory)({
        basename: '/',
      });
    `,
    `