react createElement interactive button code example
Example: react createElement interactive button
let welcome = React.createElement(
"h1",
{ style: { color: "red" } },
`Welcome to react world`
);
ReactDOM.render(welcome, document.querySelector("#root"));