import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';

main();

function main() {
  const app = document.getElementsByClassName('demonstration')[0];

  ReactDOM.render(<App />, app);
}

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';

const app = document.getElementsByClassName('demonstration')[0];

ReactDOM.render(<App />, app);


Simplify demo entry point