react-github-gist

Embed a gist from Github with React.

Usage no npm install needed!

<script type="module">
  import reactGithubGist from 'https://cdn.skypack.dev/react-github-gist';
</script>

README

Embed a gist from Github with React.

Used by illuminsight, Ptorx and other Xyfir projects.

npm version Build Status

Due to its simplicity, this project should not need frequent updates.

import { ReactGithubGist } from 'react-github-gist';
import React from 'react';

const Gist = () => (
  <ReactGithubGist
    // Gist to render
    gist="GithubUser/GistIdentifier23a110196cc3ec113"
    // Optionally render only a single file
    file="file.md"
  />
);