Skip to content

Commit

Permalink
Adding some react bits to import map
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwhitney committed May 27, 2024
1 parent 82799d9 commit 48c1a77
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="src/main.tsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')).render(
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"vite:build": "deno run -A npm:vite build"
},
"imports": {
"api": "https://deno.land/x/[email protected]"
"react": "npm:react",
"react-dom": "npm:react-dom"
}
}
8 changes: 7 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"allowImportingTsExtensions": true,
"jsx": "react"
}
}

0 comments on commit 48c1a77

Please sign in to comment.