<div id="root"></div>
ReactDOM.render(
  React.createElement(
    'button',
    {
      onClick: (e) => {
        e.preventDefault();
        alert( 'Hi Roy')
      }
    },
    "Click Me"
  ),
  document.getElementById("root")
);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://unpkg.com/react/umd/react.development.js
  2. https://unpkg.com/react-dom/umd/react-dom.development.js