Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

xyfir/react-github-gist

Repository files navigation

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"
  />
);