Re:Using TypeScript with React
by SenHeng on Thursday August 22, 2019 @01:18PM
(#20770330)
Sounds like an optional variable.
Or worst still, an or undefined, often found in class variables.
Easy way to sidestep this error is > if (!arg) return;, but it’s really a code smell of a larger, design issue. As in, the function shouldn’t really be depending on an optional value.
[ Parent
| on HN ]
There are no comments on this comment yet.