className
You create a normal ".css" file which gets imported into your JSX.
index.css
.button {
background-color: red;
}
index.jsx
import 'index.css'
const Button = () => {
return <button className="button">My Button</button>
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext