Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

JSX - inline CSS style for JSX

0 votes
27 views
added Feb 3 in JSX by lcjr Second Warrant Officer (3,160 points)
// Instead of 
<div id="scroll-header" style="position:fixed; top:52px">

// use this
<div id="scroll-header" style={{position: "fixed", top: "52px"}}>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...