Add Inline CSS To A React Element
- Use a `style` propery with a object inside the `{}` which results in `{{ stuff }}` - Use camleCaseNames instead of kabob-case-names
Code
const element =
<div style= }>
this is inline CSS
</div>
)
- Use a `style` propery with a object inside the `{}` which results in `{{ stuff }}` - Use camleCaseNames instead of kabob-case-names
const element =
<div style= }>
this is inline CSS
</div>
)