feat: use path aliases, improve TS

This commit is contained in:
Paul committed 2022-06-06 21:23:07 +03:00
1 parent aff8ccb7c9
commit 0edc38fc9d
4 files changed
+19 -7

No files matched your search

+2 -2
View File
@@ -2,9 +2,9 @@ import { useState } from 'react'
import electron from '/electron.png'
import react from '/react.svg'
import vite from '/vite.svg'
import styles from './styles/app.module.scss'
import styles from 'styles/app.module.scss'
const App = () => {
const App: React.FC = () => {
const [count, setCount] = useState(0)
return (
+2 -2
View File
@@ -1,9 +1,9 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './styles/index.css'
import 'styles/index.css'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>