refactor: convert app component to function component (#25547)

This commit is contained in:
Jamin 2023-12-05 09:28:41 +00:00 committed by GitHub
parent d62122b884
commit c008c95c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,7 @@ const LazyRoot = React.lazy(() => import('components/root'));
const Root = makeAsyncComponent('Root', LazyRoot);
class App extends React.PureComponent {
render() {
const App = () => {
return (
<Provider store={store}>
<CRTPostsChannelResetWatcher/>
@ -29,7 +28,6 @@ class App extends React.PureComponent {
</Router>
</Provider>
);
}
}
};
export default hot(App);
export default hot(React.memo(App));