Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 3b6636d

Browse files
authored
Update 2022-01-02-react-detect-scroll-direction.md
1 parent 0426924 commit 3b6636d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posts/2022-01-02-react-detect-scroll-direction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In the last year I migrated this blog on [GatsbyJS](https://www.gatsbyjs.com). T
1717

1818
#### Implementation
1919

20-
Let’s start from defining an enum that will represent the scroll direction. Let’s define it as string, because you know that :bomb: [enums in typescript are dangerous if you don’t define explicit values](https://www.aaron-powell.com/posts/2020-05-27-the-dangers-of-typescript-enums/ enum typescript danger) :bomb:.
20+
Let’s start from defining an enum that will represent the scroll direction. Let’s define it as string, because you know that [enums in typescript are dangerous if you don’t define explicit values](https://www.aaron-powell.com/posts/2020-05-27-the-dangers-of-typescript-enums/ "enum typescript danger") :bomb:.
2121

2222
```typescript
2323
export enum ScrollDirection {

0 commit comments

Comments
 (0)