Skip to content

Commit

Permalink
add redux store
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandre1 committed Sep 20, 2020
1 parent d84eba5 commit 2ea1ccd
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 239 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"gh-pages": "^2.2.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.3"
"react-scripts": "^3.4.3",
"redux": "^4.0.5"
},
"homepage": "https://modokemdev.com",
"scripts": {
Expand Down
30 changes: 0 additions & 30 deletions src/app/components/Awards.jsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/app/components/Education.jsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/app/components/Experience.jsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/components/Interests.jsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/app/components/Landing.jsx

This file was deleted.

50 changes: 0 additions & 50 deletions src/app/components/Sidebar.jsx

This file was deleted.

33 changes: 0 additions & 33 deletions src/app/components/Skills.jsx

This file was deleted.

File renamed without changes
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { store } from './store';

console.log (store.getState());

ReactDOM.render(<App />, document.getElementById('root'));

Expand Down
8 changes: 8 additions & 0 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createStore } from 'redux';
import { defaultState } from '../server/defaultState';

export const store = createStore(
function reducer (state = defaultState, action) {
return state;
}
);

0 comments on commit 2ea1ccd

Please sign in to comment.