Implement redux.

This commit is contained in:
Mike Cao 2020-08-04 22:45:05 -07:00
parent 9d8a2406e1
commit 5d4ff5cfa4
31 changed files with 341 additions and 85 deletions

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>
);
}