infra: add linting and formatting for js projects (#230)
* wip * wip * wip * format * wip(mobile): lint and format * cleanup * nits * nits * idiomatic react * nit * format all root files
This commit was merged in pull request #230.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "@/App";
|
||||
import { initSentryRenderer } from "@/lib/sentry";
|
||||
import "@/styles/globals.css";
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import App from '@/App';
|
||||
import { initSentryRenderer } from '@/lib/sentry';
|
||||
import '@/styles/globals.css';
|
||||
|
||||
initSentryRenderer();
|
||||
|
||||
const root = createRoot(document.getElementById("root")!);
|
||||
const container = document.getElementById('root');
|
||||
if (!container) throw new Error('Root element #root not found');
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
|
||||
Reference in New Issue
Block a user