Skip to content

Commit 8142f4e

Browse files
committed
🚀
1 parent 2193cf0 commit 8142f4e

File tree

6 files changed

+34
-2
lines changed

6 files changed

+34
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#Automate React-Redux Files 🚀
1+
# Automate React-Redux Files 🚀
22

33
<p align="center">
4-
<img width="80%" src='https://github.com/pieeee/redux-files-shell-script/blob/main/media/asset.gif'/>
4+
<img src='https://github.com/pieeee/redux-files-shell-script/blob/main/media/asset.gif'/>
55
</center>
66

77

redux/test/test.actionTypes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const testActionTypes = {
2+
3+
}
4+

redux/test/test.actions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { testActionTypes } from './test.action.types'
2+

redux/test/test.reducer.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { testActionTypes } from './test.action.types'
2+
const initialState = {
3+
4+
}
5+
6+
export const test = (state = initialState, { type, payload }) => {
7+
switch (type) {
8+
9+
case testActionTypes.:
10+
return { ...state, ...payload }
11+
12+
default:
13+
return state
14+
}
15+
}
16+

redux/test/test.saga.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import {all, call} from 'redux-saga/effects'
2+
import { testActionTypes } from './test.action.types'
3+
4+
export function* testSagas() {
5+
yield all([call()])
6+
}

redux/test/test.selector.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createSelector } from 'reselect'
2+
3+
export const selectTest= store => store.test
4+

0 commit comments

Comments
 (0)