I believe this is very simple but I cannot find a solution to it. I am unable to inherit my css classes in my js file.
This is my render function from the js file:
render(){
return(
<div>
<div className='smallSectionWrapper'>
<div className='oneItem'>
<h3>Name</h3>
<p>John</p>
</div>
<div className='oneItem'>
<h3>Middle Name</h3>
<p>Johny</p>
</div>
<div className='oneItem'>
<h3>Surname</h3>
<p>Johnson</p>
</div>
</div>
</div>
)
}
This is my scss file:
.oneItem {
width: 300px;
}
.smallSectionWrapper {
display: flex;
flex-direction: row;
justify-content: space-between;
}
What I expect to render:
What I actually render:
After inspecting this it appears that the classes are inherited but without the properties mentioned in the class. I'm fairly new to React so is it possible that I am missing a step?


import './styles.scss'