initial commit
This commit is contained in:
14
src/components/app.tsx
Normal file
14
src/components/app.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from "react";
|
||||
|
||||
class App extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
render(): JSX.Element {
|
||||
return <h1>Hello world</h1>;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default App;
|
||||
10
src/index.html
Normal file
10
src/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
12
src/index.tsx
Normal file
12
src/index.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
||||
import App from "./components/app";
|
||||
|
||||
import "./style/default.scss";
|
||||
|
||||
ReactDOM.render(
|
||||
<App/>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
3
src/style/default.scss
Normal file
3
src/style/default.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: darkgray;
|
||||
}
|
||||
Reference in New Issue
Block a user