adding exercies for steps 2-1 and 2-2

This commit is contained in:
Ken
2019-02-18 17:09:38 -08:00
parent 9ad6f34705
commit baf9dfd5ca
28 changed files with 133 additions and 7 deletions
@@ -0,0 +1,16 @@
import React from 'react';
export const TodoFooter = (props: any) => {
const itemCount = 3;
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
</span>
<button onClick={() => props.clear()} className="button">
Clear Completed
</button>
</footer>
);
};