Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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