mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
21 lines
547 B
TypeScript
21 lines
547 B
TypeScript
import React from 'react';
|
|
|
|
export class TodoHeader extends React.Component<any, any> {
|
|
render() {
|
|
return (
|
|
<header>
|
|
<h1>todos <small>(1.5 exercise)</small></h1>
|
|
<div className="addTodo">
|
|
<input className="textfield" placeholder="add todo" />
|
|
<button className="submit">Add</button>
|
|
</div>
|
|
<nav className="filter">
|
|
<button className="completed">all</button>
|
|
<button>active</button>
|
|
<button>completed</button>
|
|
</nav>
|
|
</header>
|
|
);
|
|
}
|
|
}
|