mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-03-27 20:00:52 +08:00
checking in docs for github.io page
This commit is contained in:
16
docs/step2-02/exercise/src/components/TodoFooter.tsx
Normal file
16
docs/step2-02/exercise/src/components/TodoFooter.tsx
Normal file
@@ -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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user