From ee9076401e3f4baae6faabd3a0cd5dad7fe8edc4 Mon Sep 17 00:00:00 2001 From: kayak Date: Sat, 30 Mar 2024 10:58:04 +1000 Subject: [PATCH] why is my build not working? --- src/{app.tsx => App.tsx} | 5 +++-- src/main.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) rename src/{app.tsx => App.tsx} (72%) diff --git a/src/app.tsx b/src/App.tsx similarity index 72% rename from src/app.tsx rename to src/App.tsx index e914ab7..1227494 100644 --- a/src/app.tsx +++ b/src/App.tsx @@ -1,8 +1,9 @@ - -export function App() { +const App = () => { return ( <>

Hello world!

); } + +export default App; \ No newline at end of file diff --git a/src/main.tsx b/src/main.tsx index 0b99a73..210b59c 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,5 +1,5 @@ import { render } from 'preact' -import { App } from './App.tsx' import './index.css' +import App from './App' render(, document.getElementById('app')!)