|
|
|
|
|
by mikewhy
2198 days ago
|
|
You would end up defining PropTypes, and ESLint is capable of keeping you in check there. It's much worse than just using TypeScript (only at runtime, PropTypes aren't that useful anywhere else, PropType syntax doesn't match Flow, TS, or jsdoc, ESLint can't check any PropTypes you spread in), but it can get you by in a pinch. |
|