How do you write an inline style specifying the font-size:12px and color:red; in JSX

Question:How do you write an inline style specifying the font-size:12px and color:red; in JSX

1.style={{font-size:12,color:'red'}}

2.style={{fontSize:'12px',color:'red'}}

3.style={fontSize:'12px',color:'red'}

4. style={{font-size:12px,color:'red'}}


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!