import * as React from 'react' ; import { TodoST } from '../models/todo' ; export default ( props ) => ( < div > < p > { props . todo . value } < /p> { ! props . todo . done && ( < button onClick = { ( ) => props . handleClickDone ( { id : props . todo . id , done : true } ) } > done < /button>)} < /div>);