Skip to content

Commit b338459

Browse files
committed
update
1 parent 8537430 commit b338459

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ npm start
77
```
88
and go to [http://localhost:3000](http://localhost:3000)
99

10+
作業目標:
11+
* 完成 Todo App 包含以下功能:
12+
* 新增 Todo
13+
* 刪除 Todo
14+
1015
環境需求:Node.js 6.10 以上

root.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom'
33

4-
import TodoApp from './src/TodoApp.jsx'
4+
import App from './src/App.jsx'
55

6-
ReactDOM.render(<TodoApp/>, document.getElementById('root'));
6+
ReactDOM.render(<App/>, document.getElementById('root'));

src/TodoApp.jsx renamed to src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class TodoApp extends React.Component {
77
return (
88
<div>
99
<h2>Todo App</h2>
10-
asdasasd
10+
123
1111
</div>
1212
);
1313
}

0 commit comments

Comments
 (0)