Apply style in JSX
To apply style in JSX we need to pass a javaScript object like bellow
Example
import React from "react";
export default function App() {
return (
<div
style={{
width: "80%",
margin: "auto",
background: "gray",
textAlign: "center",
color: "white",
padding: "20px",
fontSize: "25px",
fontWeight:"800"
}}
>
Apply Style in React JS
</div>
);
}