Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

react-github-gist

2.0.1 • Public • Published

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

Install

npm i react-github-gist

DownloadsWeekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

5.97 kB

Total Files

5

Last publish

Collaborators

  • avatar