Skip to content

Adding size in jsx is not working... #78

Answered by kiley0
AbhayaShankar asked this question in Q&A
Discussion options

You must be logged in to vote

If you are using React with TypeScript, try using the style attribute with bracket notation, like this:

<td style={{ ["--size" as any]: "calc(60 / 100)" }}>60</td>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AbhayaShankar
Comment options

Answer selected by ramiy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants