#className

2 messages · Page 1 of 1 (latest)

past anvil
#

In css there's '.FancyBorder-blue' but in class it's just 'FancyBorder-'

How did it work?

pearl ember
#

In the html its written in {} which means its JavaScript and there is "FancyBorder-" + props.colour, which means it takes the colour and adds it to the name. I am not sure, but it think the css with blue should only work when the colour is set to blue