How do I add specific CSS file which I have in a variable?
render {
const {styleSheet} = this.prop;
return (
<div className={styleSheet}>
<h4> Hi </h4>
<div>
)
}
Let say I have that stylesheet prop can have values as red
, green
and blue
red
for font colour red and content in left.green
for font colour green and content in center.blue
for font colour blue and content in right.
How I can create diffrent style sheet files for each value?
ps. i am trying to create something in which i will have template... template will have lots of same data but with diffrent styling...as an example if we take a report card...each report card have same data but it have diffrent tempates.....so i want to create diffrent stylesheets for diffrent templates...now please answer.