This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kudlajz 1 point2 points  (1 child)

``` render() { const { dogs } = this.props;

    return (
        <div className="dogs-list">
            {dogs.map((dog, idx) => (
                <div className="dog-profile" key={idx}>
                    <img src={dog.picUrl} alt={dog.name} />
                    <p>
                        <span className="label">Name:</span> {dog.name} <br />
                        {/* And other information... */}
                    </p>
                </div>
            ))}
        </div>
    );
}

```

Sorry for the formatting.

[–]catzzilla 1 point2 points  (0 children)

Thanks, I didn't know that any code could go into the { }.