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

2496 views javascript

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?


answered question

1 Answer


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

<Card className='card'>

posted this

Have an answer?


Please login first before posting an answer.