I want to hide a row depened on its column's value in react-data-table-component table, But i cant find a way to do this.
I want to hide the row depend on condition as i mentioned. If there is a best solution that you have then you can help me to figure it out.
You can use the conditionalRowStyles property. This property allows you to apply custom styles to rows based on certain conditions:-
example:-
the conditionalRowStyles array contains an object with a when property that represents the condition to check for each row. In this case, it checks if the age of the row is less than 25. If the condition is true, it applies the specified styles to hide the row.