'Cannot read property 'className' of undefined in react-table React-Js

Return empty object

getTrProps: (s, r) => {

If (r && r!=Null) { Rest of your code..... } else {return {};}

}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source