Consider the following code:
const Header = () => {
const myStyle = {
color: "white",
backgroundColor: "DodgerBlue",
};
return (
<>
<h1>Hello Style!</h1>
</>
);
}
What is a correct syntax for using myStyle
as styling for the <h1>
element in the return function?