I have a piece of code that I am trying to modify with a specific condition. If {row.BB} is less than or equal to 100, I want to change the background color of the row with this value to red. Can someone help me achieve this? The code is linked to a database and uses a JSX file.
return (
<>
<Navigation />
<Box bg={'white'} w="100%"
p={4}
m={4}
color="black"
rounded={'md'}
>
<Table size='sm' variant='striped' colorScheme='gray'>
<Thead>
<Tr>
<Th>A</Th>
<Th>B</Th>
<Th>C</Th>
</Tr>
</Thead>
<Tbody>
{file.map((row, index) => (
<Tr key={index}>
<Td>{row.AA}</Td>
<Td>{row.BB}</Td>
<Td>{row.CC}</Td>
</Tr>
))}
</Tbody>
</Table>
</Box>
</>
);
}