Skip to content

Commit

Permalink
chore: Fix website for react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 31, 2022
1 parent b871837 commit d29431b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

tasks:
- init: yarn install && yarn run builds
- init: yarn install && yarn run build

vscode:
extensions:
Expand Down
7 changes: 4 additions & 3 deletions examples/src/app.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import * as ReactDOM from 'react-dom/client';
import './example.less';
import SuperMario from './components/examples/SuperMario';
import MattGroening from './components/examples/MattGroening';
import Avengers from './components/examples/Avengers';
import RightToLeft from './components/examples/RightToLeft';

ReactDOM.render(
const root = ReactDOM.createRoot(document.getElementById('example'));

root.render(
<div>
<SuperMario />
<MattGroening />
<Avengers />
<RightToLeft />
</div>,
document.getElementById('example'),
);

0 comments on commit d29431b

Please sign in to comment.