index.js 536 B

12345678910111213141516171819202122232425
  1. import React, {StrictMode} from 'react';
  2. import ReactDOM from 'react-dom';
  3. import App from './components/app/App';
  4. import './index.css';
  5. //const elem = React.createElement('h2', {className: 'App-header'}, 'Hello world');
  6. /* const text = 'Hello world';
  7. const elem = (
  8. <div className="App">
  9. <h1 className={text}>This is the text:{text}</h1>
  10. <input type="text" />
  11. <button tabIndex='0' >push me</button>
  12. </div>
  13. ) */
  14. ReactDOM.render(
  15. <StrictMode>
  16. <App/>
  17. </StrictMode>,
  18. document.getElementById('root')
  19. );