mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
ad31cfa4dc
We no longer support the legacy factory style of calling component constructors directly. We only support createElement or the wrapping of classes with createFactory. Instead of letting this fail in a gross way as we try to run, add a nice warning that shows up before the gross TypeError.