How to write inline CSS in React?

function App(){
  return <h1 style={{ color: 'red' }}>Hello World</h1>
}