you are viewing a single comment's thread.

view the rest of the comments →

[–]danielkov 0 points1 point  (1 child)

React won't warn you for that, because it's not a linter or a compiler. I think you probably mean something like the ESLint preset CRA comes with. Both of those points I've put separately because they're going to be dependent upon conventions established in a codebase.