mirror of
https://github.com/gosticks/react-table.git
synced 2026-07-01 18:10:02 +00:00
use Object.getPrototypeOf instead of .prototype (#117)
This commit is contained in:
committed by
Tanner Linsley
parent
bd82468852
commit
10dc68acc1
@@ -193,7 +193,7 @@ function isSortingDesc (d) {
|
||||
|
||||
function normalizeComponent (Comp, params = {}, fallback = Comp) {
|
||||
return typeof Comp === 'function' ? (
|
||||
Comp.prototype.isReactComponent ? (
|
||||
Object.getPrototypeOf(Comp).isReactComponent ? (
|
||||
<Comp
|
||||
{...params}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user