tahamajs's picture
download
raw
700 Bytes
/**
* react/main.jsx
* ==============
* Entry point for mounting the declarative React routing layer.
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.jsx';
export function mountReactVisualizer(targetElement) {
if (!targetElement) {
console.error("Cannot mount React visualizer: Target container element is null");
return null;
}
const root = createRoot(targetElement);
root.render(<App />);
return root;
}
// Auto-mount if root element present in DOM
if (typeof document !== 'undefined') {
const rootEl = document.getElementById('react-root');
if (rootEl) {
mountReactVisualizer(rootEl);
}
}
export default App;

Xet Storage Details

Size:
700 Bytes
·
Xet hash:
817976627a2d1cf7792f4e24b48daef87afaa671784a5034eb41d5db2b50a4e8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.