4 ms·
Switching to create-react-class sounds reasonable, that's what we intended. It will work in older versions too.
by danabramov 10y ago
Switching to create-react-class sounds reasonable, that's what we intended. It will work in older versions too.
- amk_ 10y agoIf we switch to it as a hard dependency, library consumers on React <16 will have an extra package in the bundle. If we make it an optional peer dependency, package.json becomes less reliable because we would need to check where createClass is implemented at runtime. Is create-react-class smart enough to determine whether the version of React it is augmenting already implements createClass to prevent bundle size bloat?