Skip to content

Instantly share code, notes, and snippets.

@tobob
Created December 30, 2020 11:07
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 tobob/cf6cafff3954f1da44b711f1a66a4a2a to your computer and use it in GitHub Desktop.
Save tobob/cf6cafff3954f1da44b711f1a66a4a2a to your computer and use it in GitHub Desktop.
import React from "react";
import { graphql } from "gatsby";
import Gist from "super-react-gist";
const CodeComponent = ({ url }) => <Gist url={url} />;
export default CodeComponent;
export const modelName = "ContentfulCodeComponent";
export const query = graphql`
fragment CodeComponentFragment on ContentfulCodeComponent {
url
__typename
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment