Skip to content

Commit

Permalink
fix(web): avoid default export for app
Browse files Browse the repository at this point in the history
  • Loading branch information
yamcodes committed Mar 30, 2024
1 parent 97508c1 commit b85968c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions apps/web/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { useEffect, useState } from 'react';
import { iLikeTurtles } from 'utilities';

import './App.css';

const App = () => {
export const App = () => {
const [data, setData] = useState({});
useEffect(() => {
void fetch('/api/test')
Expand Down Expand Up @@ -47,5 +46,3 @@ const App = () => {
</div>
);
};

export default App;
2 changes: 1 addition & 1 deletion apps/web/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './app';
import { App } from './app';
import './index.css';

const container = document.getElementById('root');
Expand Down

0 comments on commit b85968c

Please sign in to comment.