To showcase the styling I have used, how can I pass the CSS class where my styles are defined in a React component? The JavaScript file and CSS file are separate entities with styles written in the CSS file.
.SideBar{
border: 1px solid black;
height: 700px;
background-color: silver;
margin-top: 5px;
}
Now, I want this class to reflect on the user interface. What should I include in the JS portion? import classes from './Project.module.css';
The styling properties function correctly on the JSX element but I desire for the user to be able to view these properties. How can I achieve this in JSX?
Expected Output :- On UI
.SideBar{
border: 1px solid black;
height: 700px;
background-color: silver;
margin-top: 5px;
}
What steps should I take?