8000 react-redux initial setup · sureshmangs/coding-ai@f5fb22c · GitHub
[go: up one dir, main page]

Skip to content

Commit f5fb22c

Browse files
committed
react-redux initial setup
1 parent 04fc7fc commit f5fb22c

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/actions/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Index action

src/actions/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Types to be defiend here

src/reducers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Index reducers

src/store.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createStore, applyMiddleware } from 'redux';
2+
import reduxThunk from 'redux-thunk';
3+
import rootReducer from './reducers/index';
4+
5+
6+
const store = createStore(rootReducer, applyMiddleware(reduxThunk));
7+
8+
9+
export default store;

0 commit comments

Comments
 (0)
0