modify index.html

==


 import React from 'react';

import ReactDOM from 'react-dom/client';



const myelement = (
  <table>
    <tr>
      <th>Name</th>
    </tr>
    <tr>
      <td>John</td>
    </tr>
    <tr>
      <td>Elsa</td>
    </tr>
  </table>
);

const container = document.getElementById('sandy');
const root = ReactDOM.createRoot(container);
root.render(myelement);

=

 <header id="sandy"></header>

=

No comments:

Post a Comment

React -1 ( react with ravenndra kanchi)

 react with tool chanis 45 to 50 sessions core  after 50 sessions -> some tooll chains == react with type script mern stackaplication in ...