mirror of
https://github.com/gosticks/react-table.git
synced 2026-09-07 09:40:27 +00:00
When rendering a class component using the `class extends React.Component {}` syntax, you would get an error `TypeError: Cannot call a class as a function` because the check to determine whether a component was a class component was insufficient. It seems pointless to even have a check, however, because the JSX syntax can render both class and functional components.