I have a component:
import React from 'react';
import s from './SectionsTitle.module.css';
const SectionsTitle = (props) => {
return (
<div className={props.styleTitle}>
{props.whiteFraction}<span{props.redFraction}</span>
</div>
);
};
export default SectionsTitle;
I pass styleTitle
through props from the parent component:
<SectionsTitle styleTitle='s.SectionsTitle' />
Is it possible to pass s.SectionsTitle
through props somehow? It doesn’t work for me this way