RickWong / react-transmit

Relay-inspired library based on Promises instead of GraphQL.
BSD 3-Clause "New" or "Revised" License
1.31k stars 61 forks source link

Example on readme #48

Closed srolel closed 8 years ago

srolel commented 8 years ago

In the Newsfeed example, an array is returned from the render function of the Newsfeed component, which is not a valid return value.

RickWong commented 8 years ago

I don't see it??

srolel commented 8 years ago

Here:

const Newsfeed = React.createClass({
    render () {
        const {stories} = this.props;  // Fragments are guaranteed.

        return stories.map((story) => <Story story={story} />);
    }
});
RickWong commented 8 years ago

Oh right, there. Thanks @Mosho1