Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 1fbbda8

Browse files
author
Paul Korzhyk
committed
Add and use todomvc-app-css
1 parent a18d1fd commit 1fbbda8

File tree

4 files changed

+906
-1121
lines changed

4 files changed

+906
-1121
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"react": "^16.8.4",
77
"react-dom": "^16.8.4",
8-
"react-scripts": "2.1.8"
8+
"react-scripts": "2.1.8",
9+
"todomvc-app-css": "^2.1.2"
910
},
1011
"scripts": {
1112
"start": "react-scripts start",

public/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
name="viewport"
88
content="width=device-width, initial-scale=1, shrink-to-fit=no"
99
/>
10-
<title>Dgraph TODO MVC</title>
10+
<title>Dgraph + React • TodoMVC</title>
1111
</head>
1212
<body>
1313
<noscript>You need to enable JavaScript to run this app.</noscript>
14-
<div id="root"></div>
14+
<section id="root" class="todoapp"></section>
15+
16+
<footer class="info">
17+
<p>Double-click to edit a todo</p>
18+
<p>Created by <a href="http://github.com/petehunt/" target="_blank">petehunt</a></p>
19+
<p>Updated by <a href="http://github.com/dgraph-io/" target="_blank">Dgraph Labs</a></p>
20+
</footer>
1521
</body>
1622
</html>

src/App.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
import React, { Component } from 'react'
2+
import 'todomvc-app-css/index.css'
3+
24
import './App.css'
35

46
export default class App extends Component {
57
render() {
68
return (
79
<div>
8-
<h1>TODO: Insert our app here</h1>
9-
</div>
10+
<header className="header">
11+
<h1>todos</h1>
12+
<input
13+
className="new-todo"
14+
placeholder="What needs to be done?"
15+
autoFocus={true}
16+
/>
17+
</header>
18+
</div>
1019
)
1120
}
1221
}

0 commit comments

Comments
 (0)