Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Eslint rules are commented for your convenience feel free to tweak or remove the
To test the output of your template locally run

```bash
npx create-react-app my-app --template file:/\path\to\file
npx create-react-app my-app --template file:./cra-template-typescript-redux
```

## How to create custom Create React App (CRA) templates
Expand All @@ -101,10 +101,6 @@ I created a step by step guide on how to create your own templates.

[View on dev.to](https://dev.to/alexandrg/how-to-create-custom-create-react-app-cra-templates-3nca)

## My other templates

[A light weight Create React App template with Recoil for state management](https://github.com/alexandr-g/cra-template-recoil)

## Thank you

I hope this template will be helpful for you and you will love using it 🖤
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@types/node": "^14.0.0",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@types/react-redux": "^7.1.25",
"@types/react-router-dom": "^5.3.3",
"@types/redux-mock-store": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
Expand All @@ -47,10 +48,10 @@
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/components/counter/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Counter: React.FC = () => {
<div className="card-action">
<div className="group">
<button
className="waves-effect waves-teal btn-flat blue"
className="waves-effect waves-teal btn-flat red"
type="button"
data-qa="decrement-counter"
onClick={() =>
Expand All @@ -34,7 +34,7 @@ const Counter: React.FC = () => {
decrement
</button>
<button
className="waves-effect waves-teal btn-flat red"
className="waves-effect waves-teal btn-flat blue"
type="button"
data-qa="increment-counter"
onClick={() =>
Expand Down
8 changes: 4 additions & 4 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "14.0.0",
"@types/react": "18.2.6",
"@types/react-dom": "18.2.4",
"@types/react-redux": "8.0.5",
"@types/react-redux": "7.1.25",
"@types/react-router-dom": "5.3.3",
"@types/redux-mock-store": "1.0.1",
"@typescript-eslint/eslint-plugin": "5.59.5",
Expand All @@ -14,10 +14,10 @@
"eslint-config-airbnb-typescript": "16.1.0",
"eslint-config-prettier": "8.0.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react-hooks": "4.0.8",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"prettier": "2.0.0",
"react-redux": "8.0.5",
"react-router-dom": "6.11.1",
Expand Down
4 changes: 2 additions & 2 deletions template/src/components/counter/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Counter: React.FC = () => {
<div className="card-action">
<div className="group">
<button
className="waves-effect waves-teal btn-flat blue"
className="waves-effect waves-teal btn-flat red"
type="button"
data-qa="decrement-counter"
onClick={() =>
Expand All @@ -34,7 +34,7 @@ const Counter: React.FC = () => {
decrement
</button>
<button
className="waves-effect waves-teal btn-flat red"
className="waves-effect waves-teal btn-flat blue"
type="button"
data-qa="increment-counter"
onClick={() =>
Expand Down
1 change: 1 addition & 0 deletions template/src/features/counter/counterReducer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/default-param-last */
import { INCREMENT_COUNTER, DECREMENT_COUNTER } from './actionTypes'
import { CounterActionTypes } from './types'

Expand Down
Loading