Answers for "how to write inline styling in react"

49

inline style jsx

//Multiple inline styles
<div style={{padding:'0px 10px', position: 'fixed'}}>Content</div>
Posted by: Guest on September-09-2020
1

using inline styling in React

function MyComponent(){
2
3return <div style={{ color: 'blue', lineHeight : 10, padding: 20 }}> Inline Styled Component</div>
4
5}
Posted by: Guest on May-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language