-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/esbuild-plugin/examples/react-typescript/src/App.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as React from 'react' | ||
import Panel from './Panel' | ||
|
||
// App Component | ||
export default function App() { | ||
return (<div> | ||
<h1>Hello, ESBUILD!</h1> | ||
<Panel/> | ||
<Panel/> | ||
</div>) | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/esbuild-plugin/examples/react-typescript/src/Panel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as React from 'react' | ||
|
||
export default function Panel() { | ||
return ( | ||
<h2>I'm a Panel</h2> | ||
) | ||
} |
18 changes: 0 additions & 18 deletions
18
packages/esbuild-plugin/examples/react-typescript/src/app.tsx
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
packages/esbuild-plugin/examples/react-typescript/src/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
|
||
const root = ReactDOM.createRoot( | ||
document.getElementById('root') | ||
) | ||
root.render(<App />) |