react use inline css string code example
Example 1: javascript style inline react
<div style={{ width: '200px', backgroundColor: 'red' }}>
Example 2: react add inline styles in react
// You are actuallty better off using style props
// But you can do it, you have to double brace
// and camel-case the css properties
render() {
return (
<div style={{paddingTop: '2em'}}>
<p>Eh up, me duck!</p>
</div>
)
}