Skip to content

Commit

Permalink
fix: πŸ› Errors on moduels imports
Browse files Browse the repository at this point in the history
βœ… Closes: #6
  • Loading branch information
MadejaMaciej committed Feb 28, 2024
1 parent 54aba75 commit 285d300
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion california-49er-desktop-v1/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "california-49er-desktop-v1",
"productName": "california-49er-desktop-v1",
"version": "0.1.0",
"version": "0.1.1",
"description": "My Electron application description",
"main": ".webpack/main",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion california-49er-desktop-v1/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createRoot } from 'react-dom/client';
import Main from './components/Main';

const root = createRoot(document.body);
root.render(<h2>Hello from React!</h2>);
root.render(<Main />);
9 changes: 9 additions & 0 deletions california-49er-desktop-v1/src/components/Main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react";

function Main() {
return (
<h2>Hello from React!</h2>
);
}

export default Main;

0 comments on commit 285d300

Please sign in to comment.