react-data-table-component
react-data-table-component copied to clipboard
Warning: Failed prop type: Invalid prop `columns[0].name` of type `object` supplied to <ReactComponent />, expected 'string'.
Bug
Using a React component as the column name works as expected, however, I would expect that this console warning does not appear. This is causing unnecessary noise in my browser console.
To Reproduce
Steps to reproduce the behavior:
- Create react data table with the name as a React component.
- Click Inspect in the browser.
- See error - Warning: Failed prop type: Invalid prop
columns[0].nameof typeobjectsupplied to <ReactComponent />, expected 'string'.
Versions
- React 16.12.0
- Styled Components 4.4.1
- Browser: Chrome v99

Am I missing something here?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.