I'm using React to create some button and CSS to styling theme. So I've created a class Button:
export default class Button extends React.Component{
public className: string;
constructor(props){
super(props);
this.className = props.className ? props.className : "";
}
public render() {
return (
<button className = {this.className}>
{this.value}
</button>
);
}
}
This is my CSS:
.my-css {
width: 300px;
height: 200px;
border-radius: 8px;
}
And this is how I use it:
<Button className = "my-css" value = "Test" />
Why in the inspector I don't see my rule loaded?
Thanks for whoever will answer me! :-)