Create React Element

index.js

 import React from "react";
 import ReactDOM from "react-dom";
 import "./index.css";
 ReactDOM.render(
       React.createElement(
              "h1",
               { style: { color: "green" } },
                "Welcome to the React World"
                   ),
         document.getElementById("root")
       );

image.png

No Comments Yet