Implement redux.

This commit is contained in:
Mike Cao committed 2020-08-04 22:45:05 -07:00
1 parent 9d8a2406e1
commit 5d4ff5cfa4
31 files changed
+341 -85

No files matched your search

+9 -1
View File
@@ -1,7 +1,15 @@
import React from 'react';
import { Provider } from 'react-redux';
import { useStore } from 'redux/store';
import 'styles/bootstrap-grid.css';
import 'styles/index.css';
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />;
const store = useStore();
return (
<Provider store={store}>
<Component {...pageProps} />
</Provider>
);
}