3 ms·
PropTypes for one. And a lot of other little, "you did this but probably meant to do that" type of checks like when you use class instead of className.
by svachalek 10y ago
PropTypes for one. And a lot of other little, "you did this but probably meant to do that" type of checks like when you use class instead of className.
- tengbretson 10y agoCorrect me if I'm wrong, but the production build of React strips out PropTypes as well doesn't it?
- doytch 10y agoIt definitely strips out PropType checks. Not sure if the underlying code is still in the production builds though.
- danabramov 10y agoIt is included in 15 but won't be in 16.