Javascript – Pass a value from react component to scss
I have the following code in .jsx component, <div className={type === "travellist" ? "headerContainer listmode" : "headerContainer"}> In .scss how do I use the listmode for the class headerContainer? For example: .headerContainer.listmode{ margin: 20px 0px 40px 0px; } or .headerContainer{…