Skip to content

adamrneary/react-gist-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React-gist-embed

A simple react component to dynamically render a gist embed

Introduction

Gists are difficult to render dynamically because they use document.write.

This component offers a simple workaround, allowing a React app to render a gist in an iframe and then adjust the height of the iframe to reflect the height of the child gist itself.

Getting started

Install via npm:

npm install --save react-gist-embed

Then simply require and pass a gistId.

var GistEmbed = require('react-gist-embed');

<GistEmbed gistId='a759fd68208808020598'/>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published