20 |
21 |
22 |
23 |
24 |
25 |
26 | {counter}
27 |
28 |
29 |
32 |
35 |
36 |
37 |
38 |
39 | );
40 | }
41 | }
42 |
43 | export default Counter;
44 |
--------------------------------------------------------------------------------
/app/components/Home.scss:
--------------------------------------------------------------------------------
1 | :local {
2 | .container {
3 | position: absolute;
4 | top: 30%;
5 | left: 10px;
6 | text-align: center;
7 | }
8 |
9 | .container h2 {
10 | font-size: 5rem;
11 | }
12 |
13 | .container a {
14 | font-size: 1.4rem;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/app/components/Home.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import { Link } from 'react-router-dom';
3 |
4 | let styles = require('./Home.scss');
5 |
6 | export default class Home extends React.Component {
7 | render() {
8 | return (
9 |