Last active
November 15, 2018 10:17
-
-
Save zapkub/902bbcc72ee4a7fb0bb98e0daa543723 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import "./App.css"; | |
import "todomvc-common/base.css"; | |
import "todomvc-app-css/index.css"; | |
// เขียน ทุก component รวมกันในไฟล์เดียว | |
// เพื่อความสะดวกในการเขียนบทความ | |
const TodoInput = () => <div />; | |
const TodoList = () => <div />; | |
const TodoCount = () => <div />; | |
const TodoFilters = () => <div />; | |
const Footer = () => <div />; | |
export default () => ( | |
<> | |
<div className="App todoapp"> | |
<header className="header"> | |
<h1>todos</h1> | |
<TodoInput /> | |
</header> | |
<section className="main"> | |
<TodoList /> | |
</section> | |
<footer className="footer"> | |
<TodoCount /> | |
<TodoFilters /> | |
</footer> | |
</div> | |
<Footer /> | |
</> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment