2

I am using react data table component which requires me to install styled component.

The moment i render the DataTable after passing the columns and data prop, I get various errors on my console saying there is a problem with some of the props im using such as the isActive. Meanwhile, I am actually not using that prop anywhere in my code

screenshot of the error

My code where I am using the data table component

1 Answers1

1

This is a breaking change from a dependency of react-data-table-component, styled-components version 6

The react-data-table-component library will need to be updated to properly use styled-components 6. For now, I solved this by downgrading styled-components to version 5:

npm install styled-components@5

lucasvw
  • 1,345
  • 17
  • 36