Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active October 28, 2018 15:58
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/848fb851b1b6e101f5a76ecb82fb9440 to your computer and use it in GitHub Desktop.
Save dance2die/848fb851b1b6e101f5a76ecb82fb9440 to your computer and use it in GitHub Desktop.
import { lazy } from "react";
const PushEvent = lazy(() => import(`./PushEvent`));
const ReleaseEvent = lazy(() => import(`./ReleaseEvent`));
const StatusEvent = lazy(() => import(`./StatusEvent`));
const NullEvent = lazy(() => import(`./NullEvent`));
export { PushEvent, ReleaseEvent, StatusEvent, NullEvent };
import React from "react";
const NullEvent = () => <></>;
export default NullEvent;
import React from "react";
const PushEvent = () => <div class="event">Push Event</div>;
export default PushEvent;
import React from "react";
const ReleaseEvent = () => <div class="event">Release Event</div>;
export default ReleaseEvent;
import React from "react";
const StatusEvent = () => <div class="event">Status Event</div>;
export default StatusEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment