mirror of
https://github.com/Lissy93/web-check.git
synced 2025-04-01 11:47:06 +02:00
🏗 Sets up TSConfig
This commit is contained in:
parent
5a3c7793f7
commit
16f2df8632
28091
package-lock.json
generated
28091
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
src/App.tsx
20
src/App.tsx
@ -1,24 +1,12 @@
|
||||
import React from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import Demo from 'components/Demo';
|
||||
import 'App.css';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.tsx</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
<h1>Hello 👋</h1>
|
||||
<Demo message="React is Dumb," />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
7
src/components/Demo.tsx
Normal file
7
src/components/Demo.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
interface Props {
|
||||
message: string,
|
||||
};
|
||||
|
||||
const Demo = ({ message }: Props): JSX.Element => <div>{message}</div>;
|
||||
|
||||
export default Demo;
|
@ -1,11 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"lib": [ "dom", "dom.iterable", "esnext" ],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
@ -18,9 +14,8 @@
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx"
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "src",
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
"include": [ "src" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user