Can't apply css to React className...
import React from "react";
import "./index.css";
class CompanyInfo extends React.Component {
render() {
return (
<div className="CompanyInfo">
<ul>
<li className="Name">Company Name</li>
<li className="Production">Production</li>
</ul>
</div>
);
};
}
export default CompanyInfo;
here's my CSS
.CompanyInfo {
list-style: none;
font-family: 'Hind', sans-serif;
color: white;
}
.Name {
font-size: 20px;
}
.Production {
font-size: 16px;
}
but this doesn't work! it still appears like a list
The image to see how it appears
without any CSS :/
Can you help me? :)