Created
January 6, 2019 18:13
-
-
Save charbelrami/bcef446fa2f47b72335b29dcf149baea to your computer and use it in GitHub Desktop.
Pure Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export default function TodoList({ todos }) { | |
return ( | |
<ol> | |
{todos.map((todo, index) => ( | |
<li key={index}>{todo.text}</li> | |
))} | |
</ol> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment