Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created December 4, 2017 02:00
Embed
What would you like to do?
render() {
const { components } = this.state;
const { events } = this.props;
if (components.length !== events.length) return <div>Loading...</div>;
components.sort((c1, c2) => c2.props.id - c1.props.id);
return <div className="App">{components}</div>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment