mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 01:08:28 +02:00
Better dir structure
This commit is contained in:
21
src-web/main.tsx
Normal file
21
src-web/main.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './App';
|
||||
import { HelmetProvider } from 'react-helmet-async';
|
||||
import { MotionConfig } from 'framer-motion';
|
||||
import init, { greet } from 'hello';
|
||||
|
||||
import './main.css';
|
||||
|
||||
await init();
|
||||
greet();
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<MotionConfig transition={{ duration: 0.15 }}>
|
||||
<HelmetProvider>
|
||||
<App />
|
||||
</HelmetProvider>
|
||||
</MotionConfig>
|
||||
</React.StrictMode>,
|
||||
);
|
||||
Reference in New Issue
Block a user