These folders/files will be a part of the NPM package:
- PropTypes are getting wrapped with this babel plugin)
process.env.NODE_ENV !== "production". This way applications in production, will not include
propTypes. If a component depends to check
propTypesduring runtime, consider to export them, so they not getting removed – or simply use
defaultPropsfor the operation.
- As for now, we use React Class Components, because there may happen the case, where two React instances are used, and that does not work with Hooks. Also performance is a key factor. But we may consider a rewrite at some point of time.