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