react-gists
v1.0.0
Published
Embed Github Gists into your React application. Compatible with React 16.
Downloads
7
Readme
react-gists
Embed Github Gists into your React application. Compatible with React 16.
Installation
npm install --save react-gists
Usage
Import:
import Gist from 'react-gists'
All files:
<Gist id="1234asdf"/>
Specific file:
<Gist id="1234asdf" file="example.js"/>
Demo
You can run the demo locally by cloning this repo and follow these steps from within the cloned directory:
cd demo
yarn install
yarn start
- A local server should be running on http://localhost:3000
License
MIT