Skip to content

Instantly share code, notes, and snippets.

@mbeaudru
Created August 20, 2018 15:28
Show Gist options
  • Save mbeaudru/5c53921ff572610bdcc572c1c8e7d45d to your computer and use it in GitHub Desktop.
Save mbeaudru/5c53921ff572610bdcc572c1c8e7d45d to your computer and use it in GitHub Desktop.
@Medium - Render Props are the new Controllers / Presentational sample
import React from "react";
function TodoItem({ todo, onClick }) {
const { label } = todo;
return <li onClick={onClick}>{label}</li>;
}
export default TodoItem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment