mirror of
https://github.com/morten-olsen/refocus.dev.git
synced 2026-02-08 00:46:25 +01:00
init
This commit is contained in:
12
packages/app/src/app.tsx
Normal file
12
packages/app/src/app.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { widgets } from '@refocus/widgets';
|
||||
import { FocusProvider, Interface } from '@refocus/ui';
|
||||
|
||||
const App: React.FC = () => {
|
||||
return (
|
||||
<FocusProvider widgets={widgets as any}>
|
||||
<Interface.App />
|
||||
</FocusProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
9
packages/app/src/main.tsx
Normal file
9
packages/app/src/main.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './app';
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
);
|
||||
1
packages/app/src/vite-env.d.ts
vendored
Normal file
1
packages/app/src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user