Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Sep 11, 2024
1 parent 50568e5 commit aab5259
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/migrations/remote-ui-to-remote-dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ icon.setAttribute('type', 'archive');
icon.setAttribute('slot', 'icon');
button.append(icon);
root.append(button);
document.body.append(root);
```

## Update React integration
Expand Down Expand Up @@ -211,6 +212,7 @@ createRoot(remoteRoot).render(<App />);
import {createRoot} from 'react-dom/client';

const root = document.createElement('remote-root');
document.body.append(root);
createRoot(root).render(<App />);
```

Expand Down

0 comments on commit aab5259

Please sign in to comment.