JGuizard
8/29/2017 - 4:17 PM

Render di un elemento in React

Render di un elemento in React

import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(<h1>TODO List</h1>, document.getElementById('app'));

const toDoList = (
  <ol>
    <li>Learn React</li>
    <li>Become a Developer</li>
  </ol>
);

ReactDOM.render(
  toDoList, 
  document.getElementById('app')
);