feat: инициализация проекта с React 19 и TypeScript 5
- Создан package.json со всеми зависимостями - Добавлены npm скрипты для разработки и сборки - Создана базовая структура: src/, public/ - Настроен .gitignore (игнорирование папок с точкой) - Добавлен базовый React компонент с TypeScript
This commit is contained in:
5
src/App.tsx
Normal file
5
src/App.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
const App = () => {
|
||||
return <div>Test</div>
|
||||
}
|
||||
|
||||
export default App
|
||||
12
src/index.tsx
Normal file
12
src/index.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createRoot } from 'react-dom/client'
|
||||
|
||||
import App from './App'
|
||||
|
||||
const container = document.getElementById('root')
|
||||
|
||||
if (!container) {
|
||||
throw new Error('Root element not found')
|
||||
}
|
||||
|
||||
const root = createRoot(container)
|
||||
root.render(<App />)
|
||||
Reference in New Issue
Block a user