This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +906
-1121
lines changed Expand file tree Collapse file tree 4 files changed +906
-1121
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import React , { Component } from 'react'
2+ import 'todomvc-app-css/index.css'
3+
24import './App.css'
35
46export 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}
You can’t perform that action at this time.
0 commit comments