Dominik Guzy | dominik.guzy@gorrion.pl | dom.guzy@gmail.com
Lista materiałów dodatkowych do prezentacji na CS3.
Dominik Guzy | dominik.guzy@gorrion.pl | dom.guzy@gmail.com
Lista materiałów dodatkowych do prezentacji na CS3.
const MyBetterDiv = props => ( | |
<div className="better" {...props} /> | |
) |
const MyBetterDiv = props => | |
<div className="better" {...props} /> |
<MyBetterDiv data-gorrion="gorrion" data-other="other prop">Gorrion is always bettter</MyBetterDiv> |
<div class="better" data-gorrion="gorrion" data-other="other prop">Gorrion is always bettter</div> |
const Greeting = props => <div>Hello {props.name}!</div> |
const Greeting = ({name}) => <div>Hello {name}!</div> |
const Greeting = ({ name, ...props }) => | |
<div {...props}>Hi {name}!</div> |
const Commentlist = ({comments}) => ( | |
<ul> | |
{comments.map(({ body, author }) => | |
<li>{body}-{author}</li> | |
)} | |
</ul> | |
) |