Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created December 4, 2017 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/87c20876004c92c90bb5e536f90d4873 to your computer and use it in GitHub Desktop.
Save dance2die/87c20876004c92c90bb5e536f90d4873 to your computer and use it in GitHub Desktop.
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