This file contains hidden or 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
// FP languages permit to evaluate if/else expressions as values. | |
// In many cases it permits to avoid using mutable variables (var/let), multiple returns, or nested ternary operators | |
// This is the do { } notation (stage 0), that permits to write the following right now with Babel. | |
const Users = ({users}) => ( | |
<div> | |
{users.map(user => | |
<UserCard key={user.id} user={user}/> |