E
E
embiid2020-08-25 21:38:07
React
embiid, 2020-08-25 21:38:07

How to style react component?

For example, there is a block component whose background style is set to transparent.
How can I use the same component, but with a class that has a different background color?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2020-08-25
@embiid

Pass it the desired className via props

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question