fleshed out up to step 6

This commit is contained in:
Micah Godbolt
2019-02-12 15:44:59 -08:00
parent df6f302623
commit 5a87f131b5
26 changed files with 516 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
import React from "react";
export class TodoHeader extends React.Component<any, any> {
render() {
const { filter } = this.props;
return (
<div>
<h1>todos</h1>
<input className="textfield" />
<button className="button add">Add</button>
<div className="filter">
<button className={filter == "all" ? "active" : ""}>all</button>
<button className={filter == "active" ? "active" : ""}>active</button>
<button className={filter == "completed" ? "active" : ""}>
completed
</button>
</div>
</div>
);
}
}