Skip to content

Commit b92c0ce

Browse files
authored
Update basic-tutorial.md (#402)
fix typo with quotation marks. " -> '
1 parent 4bbe51b commit b92c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/basic-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ document.getElementById('increment').addEventListener('click', () => {
8080
})
8181
```
8282

83-
Since the example is small, that doesn't make too much of a difference in appearance. Size-wise, we saved a couple lines by using a default argument, but writing those action creator functions made things bigger. And, there's some duplication here. Writing `const INCREMENT = 'INCREMENT"` just looks silly :) Especially when it's only being used in two places - the action creator and the reducer.
83+
Since the example is small, that doesn't make too much of a difference in appearance. Size-wise, we saved a couple lines by using a default argument, but writing those action creator functions made things bigger. And, there's some duplication here. Writing `const INCREMENT = 'INCREMENT'` just looks silly :) Especially when it's only being used in two places - the action creator and the reducer.
8484

8585
In addition, switch statements bother many people. It would be nice if we could replace it with some kind of a lookup table instead.
8686

0 commit comments

Comments
 (0)