Why custom css class does not work on React-Semantic-UI elements?

2496 views javascript
1

I created card with react-semantic-ui, I want to add some extra styles via css class.

One example is:

I add custom 'card' class with box-shadow property, and that style is not applied.

              <Card class='card'>

Does someone have solution how to add custom css class to the React-semantic-ui components?

Thanks

answered question

1 Answer

13

In react, you have to use className instead of class.

<Card className='card'>

posted this

Have an answer?

JD

Please login first before posting an answer.