File size: 280 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import type { AppProps } from './App';
import App_ from './App';
import useApp from './useApp';

export type { AppProps };

type CompoundedComponent = typeof App_ & {
  useApp: typeof useApp;
};

const App = App_ as CompoundedComponent;

App.useApp = useApp;

export default App;