Update to React 18

This commit is contained in:
Angelos Chalaris
2023-04-14 20:32:31 +03:00
parent fa5427217b
commit f39deb9522
79 changed files with 214 additions and 132 deletions

View File

@ -50,8 +50,7 @@ const people = [
{ name: 'Adam', surname: 'Smith', gender: 'male' }
];
const propertyNames = ['name', 'surname', 'age'];
ReactDOM.render(
<MappedTable data={people} propertyNames={propertyNames} />,
document.getElementById('root')
ReactDOM.createRoot(document.getElementById('root')).render(
<MappedTable data={people} propertyNames={propertyNames} />
);
```