| 8 | const Exception403 = () => 403; |
| 9 | |
| 10 | export const isComponentClass = component => { |
| 11 | if (!component) return false; |
| 12 | const proto = Object.getPrototypeOf(component); |
| 13 | if (proto === React.Component || proto === Function.prototype) return true; |
| 14 | return isComponentClass(proto); |
| 15 | }; // Determine whether the incoming component has been instantiated |
| 16 | // AuthorizedRoute is already instantiated |
| 17 | // Authorized render is already instantiated, children is no instantiated |
| 18 | // Secured is not instantiated |
no outgoing calls
no test coverage detected