saahildcom/src/index.tsx

32 lines
899 B
TypeScript
Raw Normal View History

2024-06-11 03:46:47 +00:00
import React from 'react';
import './index.css';
2024-06-12 02:37:31 +00:00
import "animate.css/animate.compat.css";
import ReactDOM from 'react-dom/client';
2024-06-11 03:46:47 +00:00
import App from './App';
import reportWebVitals from './reportWebVitals';
2024-06-12 02:37:31 +00:00
import Background from './bg/main';
import { injectOneko } from './scripts/oneko';
2024-06-16 04:57:13 +00:00
import Navbar from './components/navbar';
import { runTitle } from './scripts/title';
2024-06-11 03:46:47 +00:00
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
2024-06-16 04:57:13 +00:00
document.title = "Saahild.com"
2024-06-12 02:37:31 +00:00
injectOneko();
2024-06-16 04:57:13 +00:00
runTitle()
2024-06-12 02:37:31 +00:00
document.title = 'React App';
2024-06-11 03:46:47 +00:00
root.render(
<React.StrictMode>
2024-06-12 02:37:31 +00:00
<Background />
2024-06-16 04:57:13 +00:00
<Navbar />
2024-06-11 03:46:47 +00:00
<App />
2024-06-16 04:57:13 +00:00
2024-06-11 03:46:47 +00:00
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
2024-06-12 02:37:31 +00:00
reportWebVitals(console.log);