/ chandeskpro / src / main-test.tsx
swadhinbiswas Initial release v0.1.0 · 1/16/2026
ed7a4e4
29 lines · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'

// Simple test component
function TestApp() {
    return (
        <div style={{ padding: '20px', background: '#1a1a1a', color: 'white', minHeight: '100vh' }}>
            <h1 style={{ color: '#6366f1' }}>🎉 ChanDesk is Loading!</h1>
            <p>If you see this, React is working!</p>
            <button style={{ padding: '10px 20px', background: '#6366f1', color: 'white', border: 'none', borderRadius: '4px', cursor: 'pointer' }}>
                Test Button
            </button>
        </div>
    )
}

const root = document.getElementById('root')
if (root) {
    createRoot(root).render(
        <StrictMode>
            <TestApp />
        </StrictMode>
    )
} else {
    console.error('Root element not found!')
    document.body.innerHTML = '<h1 style="color: red; padding: 20px;">ERROR: Root element not found!</h1>'
}