Skip to content

Instantly share code, notes, and snippets.

View udt1106's full-sized avatar

Jihyun Kim udt1106

View GitHub Profile
@udt1106
udt1106 / React Dynamic Function Example
Created April 10, 2019 17:00
React.js - Dynamically add and remove GitHub profile in list
const CardList = (props) => (
<div>
{props.profiles.map(profile => <Card key={profile.id} {...profile}/>)}
</div>
);
class Card extends React.Component {
render() {
const profile = this.props;
return (