Google News
logo
ReactJS - Quiz(MCQ)
How do you write an inline style specifying the font-size:12px and color:red; in JSX
A)
style={{font-size:12,color:'red'}} 
B)
style={{fontSize:'12px',color:'red'}} 
C)
style={fontSize:'12px',color:'red'} 
D)
style={{font-size:12px,color:'red'}} 

Correct Answer :   style={{fontSize:'12px',color:'red'}}