File tree 7 files changed +185
-262
lines changed
7 files changed +185
-262
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ Eslint rules are commented for your convenience feel free to tweak or remove the
88
88
To test the output of your template locally run
89
89
90
90
``` bash
91
- npx create-react-app my-app --template file:/ \p ath \t o \f ile
91
+ npx create-react-app my-app --template file:./cra-template-typescript-redux
92
92
```
93
93
94
94
## How to create custom Create React App (CRA) templates
@@ -101,10 +101,6 @@ I created a step by step guide on how to create your own templates.
101
101
102
102
[ View on dev.to] ( https://dev.to/alexandrg/how-to-create-custom-create-react-app-cra-templates-3nca )
103
103
104
- ## My other templates
105
-
106
- [ A light weight Create React App template with Recoil for state management] ( https://github.com/alexandr-g/cra-template-recoil )
107
-
108
104
## Thank you
109
105
110
106
I hope this template will be helpful for you and you will love using it 🖤
Original file line number Diff line number Diff line change 39
39
"@types/node" : " ^14.0.0" ,
40
40
"@types/react" : " ^18.2.6" ,
41
41
"@types/react-dom" : " ^18.2.4" ,
42
+ "@types/react-redux" : " ^7.1.25" ,
42
43
"@types/react-router-dom" : " ^5.3.3" ,
43
44
"@types/redux-mock-store" : " ^1.0.1" ,
44
45
"@typescript-eslint/eslint-plugin" : " ^5.59.5" ,
47
48
"eslint-config-airbnb-typescript" : " ^16.1.0" ,
48
49
"eslint-config-prettier" : " ^8.0.0" ,
49
50
"eslint-plugin-import" : " ^2.27.5" ,
50
- "eslint-plugin-jsx-a11y" : " ^6.4 .1" ,
51
+ "eslint-plugin-jsx-a11y" : " ^6.7 .1" ,
51
52
"eslint-plugin-prettier" : " ^4.0.0" ,
52
- "eslint-plugin-react" : " ^7.21.5 " ,
53
- "eslint-plugin-react-hooks" : " ^4.0.8 " ,
53
+ "eslint-plugin-react" : " ^7.32.2 " ,
54
+ "eslint-plugin-react-hooks" : " ^4.6.0 " ,
54
55
"prettier" : " ^2.0.0" ,
55
56
"react" : " ^18.2.0" ,
56
57
"react-dom" : " ^18.2.0" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const Counter: React.FC = () => {
24
24
< div className = "card-action" >
25
25
< div className = "group" >
26
26
< button
27
- className = "waves-effect waves-teal btn-flat blue "
27
+ className = "waves-effect waves-teal btn-flat red "
28
28
type = "button"
29
29
data-qa = "decrement-counter"
30
30
onClick = { ( ) =>
@@ -34,7 +34,7 @@ const Counter: React.FC = () => {
34
34
decrement
35
35
</ button >
36
36
< button
37
- className = "waves-effect waves-teal btn-flat red "
37
+ className = "waves-effect waves-teal btn-flat blue "
38
38
type = "button"
39
39
data-qa = "increment-counter"
40
40
onClick = { ( ) =>
Original file line number Diff line number Diff line change 5
5
"@types/node" : " 14.0.0" ,
6
6
"@types/react" : " 18.2.6" ,
7
7
"@types/react-dom" : " 18.2.4" ,
8
- "@types/react-redux" : " 8.0.5 " ,
8
+ "@types/react-redux" : " 7.1.25 " ,
9
9
"@types/react-router-dom" : " 5.3.3" ,
10
10
"@types/redux-mock-store" : " 1.0.1" ,
11
11
"@typescript-eslint/eslint-plugin" : " 5.59.5" ,
14
14
"eslint-config-airbnb-typescript" : " 16.1.0" ,
15
15
"eslint-config-prettier" : " 8.0.0" ,
16
16
"eslint-plugin-import" : " 2.27.5" ,
17
- "eslint-plugin-jsx-a11y" : " 6.4 .1" ,
17
+ "eslint-plugin-jsx-a11y" : " 6.7 .1" ,
18
18
"eslint-plugin-prettier" : " 4.0.0" ,
19
- "eslint-plugin-react" : " 7.21.5 " ,
20
- "eslint-plugin-react-hooks" : " 4.0.8 " ,
19
+ "eslint-plugin-react" : " 7.32.2 " ,
20
+ "eslint-plugin-react-hooks" : " 4.6.0 " ,
21
21
"prettier" : " 2.0.0" ,
22
22
"react-redux" : " 8.0.5" ,
23
23
"react-router-dom" : " 6.11.1" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const Counter: React.FC = () => {
24
24
< div className = "card-action" >
25
25
< div className = "group" >
26
26
< button
27
- className = "waves-effect waves-teal btn-flat blue "
27
+ className = "waves-effect waves-teal btn-flat red "
28
28
type = "button"
29
29
data-qa = "decrement-counter"
30
30
onClick = { ( ) =>
@@ -34,7 +34,7 @@ const Counter: React.FC = () => {
34
34
decrement
35
35
</ button >
36
36
< button
37
- className = "waves-effect waves-teal btn-flat red "
37
+ className = "waves-effect waves-teal btn-flat blue "
38
38
type = "button"
39
39
data-qa = "increment-counter"
40
40
onClick = { ( ) =>
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/default-param-last */
1
2
import { INCREMENT_COUNTER , DECREMENT_COUNTER } from './actionTypes'
2
3
import { CounterActionTypes } from './types'
3
4
You can’t perform that action at this time.
0 commit comments