Versions 16 and prior might need the import statement at the beggining of the App.js file
import React from 'react'
but we don't need it
To add inline styles to an object, insert it into the style
attribute as an object
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a style={{
padding: '10rem' ,
background: 'white' ,
color: 'magenta' ,
}}
className="App-link"
href="https://reactjs.org" target="_blank" rel="noopener noreferrer">
Learn React
</a>
</header>
</div>
);
}
export default App;
**Remember
class
is a keyword in javascript so we use className
camelcased