mirror of
https://github.com/gosticks/react-table.git
synced 2026-01-29 21:07:35 +00:00
use getPrototypeOf instead of .prototype (#1503)
This commit is contained in:
parent
d05e54dee8
commit
5875f80089
@ -218,7 +218,7 @@ function normalizeComponent (Comp, params = {}, fallback = Comp) {
|
||||
function isClassComponent (component) {
|
||||
return !!((
|
||||
typeof component === 'function' &&
|
||||
!!component.prototype.isReactComponent
|
||||
!!Object.getPrototypeOf(component).isReactComponent
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user