I have a table and I'm trying to style it. That's what I've done so far:
<tr>
<th> </th>
<th style={tstyle}>Canada</th>
<th style={tstyle}>US</th>
<th style={tstyle}>Total</th>
</tr>
and then:
const tstyle = {
border: '1px solid #dddddd',
padding: '8px',
};
This works fine but I'm sure it's a better way to do that without repeating style={tstyle}.
I tried doing like:
const styles = () => createStyles({
th: {
color: 'blue',
},
There's no errors but it's not working.