mirror of
https://github.com/Lissy93/web-check.git
synced 2025-04-10 01:08:55 +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 React from 'react';
|
||||||
import logo from './logo.svg';
|
import Demo from 'components/Demo';
|
||||||
import './App.css';
|
import 'App.css';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<header className="App-header">
|
<h1>Hello 👋</h1>
|
||||||
<img src={logo} className="App-logo" alt="logo" />
|
<Demo message="React is Dumb," />
|
||||||
<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>
|
|
||||||
</div>
|
</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": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": [
|
"lib": [ "dom", "dom.iterable", "esnext" ],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
@ -18,9 +14,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx"
|
"jsx": "react-jsx",
|
||||||
|
"baseUrl": "src",
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [ "src" ]
|
||||||
"src"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user