News for hackers. Stuff that matters.
Re:A guide to useEffect in React by littlecranky67 on Monday March 11, 2019 @07:36AM (#19358148)
Well if you are in strict mode, it should break the build with an error, not a warning. This seems to be a linting rule.

But you see the issue with defaultProps and state here. You can basically assign anything to defaultProps or use in setState() even so you were explicit of the props type in the Generic Type Argument.

There are no comments on this comment yet.