Skip to content

Commit

Permalink
Make react example use react (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor10k authored Nov 7, 2024
1 parent de840eb commit b600374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/kitchen-sink/app/remote/examples/react.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @jsxRuntime automatic */
/** @jsxImportSource react */

import '@remote-dom/react/polyfill';
import {useState, useRef} from 'react';
import {createRoot} from 'react-dom/client';
import {createRemoteComponent} from '@remote-dom/react';
Expand Down
1 change: 1 addition & 0 deletions examples/kitchen-sink/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig({
},
plugins: [
preact({
reactAliasesEnabled: false,
// We manually set the JSX transformation to apply to examples per-file
exclude: ['remote/examples/*.tsx'],
}),
Expand Down

0 comments on commit b600374

Please sign in to comment.