- memoize all components

- implement metadata context
This commit is contained in:
Amruth Pillai
2020-07-09 14:00:18 +05:30
parent 9e98da038c
commit 3aaef5f730
71 changed files with 489 additions and 396 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { Redirect, Router } from '@reach/router';
import React from 'react';
import React, { memo } from 'react';
import PrivateRoute from '../components/router/PrivateRoute';
import Wrapper from '../components/shared/Wrapper';
import NotFound from './404';
@@ -16,4 +16,4 @@ const App = () => (
</Router>
</Wrapper>
);
export default App;
export default memo(App);