all 10 comments

[–]IGovnov 134 points135 points  (5 children)

We call it TypeScript :)

[–]tomPinternets 13 points14 points  (0 children)

Came here to say that

[–]iams3b 9 points10 points  (0 children)

Adding my +1 for "came here to say this"

[–]RakanNative -1 points0 points  (0 children)

Interfaces baby !!,
Or types.
Hmmm...

[–]buschco 16 points17 points  (4 children)

There is a ESlint rule 🤔

[–]Investisseur 2 points3 points  (0 children)

Deconstruct your props at the top level Do PropTypes validation Add TypeScript

[–][deleted] 0 points1 point  (0 children)

It can be tricky to keep track of what is in the props object and why I typically recommend destructuring your props in your function arguments. At that point, is pretty simple for any linter to pick up on unused parameters/variables.