Conditionally rendering cell data based on accessor value #2093
-
Just started using react-table, I have a lot of cases where I need to render certain things in table cells based on their values. So for example, If |
Beta Was this translation helpful? Give feedback.
Answered by
tannerlinsley
Apr 2, 2020
Replies: 1 comment 8 replies
-
Your sandbox looks great to me. Using a ternary in the Cell renderer to check the value and render accordingly is the best way to achieve this! :) |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
tannerlinsley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your sandbox looks great to me. Using a ternary in the Cell renderer to check the value and render accordingly is the best way to achieve this! :)