forked from patrick91/Styled-Components-Typescript-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tsx
More file actions
43 lines (37 loc) · 1.13 KB
/
main.tsx
File metadata and controls
43 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import * as React from "react";
import * as ReactDOM from "react-dom";
import { injectGlobal, ThemeProvider, theme } from "./theme";
import Section from "./components/section";
import Quote from "./components/quote";
import QuoteAuthor from "./components/quote-author";
injectGlobal`
* { margin: 0; padding: 0; }
`;
interface HelloProps {
compiler: string;
framework: string;
}
class Hello extends React.Component<HelloProps, {}> {
render() {
return (
<Section>
<Quote>
“I personally would rather do the existentially essential things in
life on foot. If you live in England and your girlfriend is in Sicily,
and it is clear you want to marry her, then you should walk to Sicily
to propose. For these things travel by car or aeroplane is not the
right thing.”
<QuoteAuthor>
Werner Herzog, <em>Of Walking in Ice</em>
</QuoteAuthor>
</Quote>
</Section>
);
}
}
ReactDOM.render(
<ThemeProvider theme={theme}>
<Hello compiler="TypeScript" framework="React" />
</ThemeProvider>,
document.getElementById("app")
);