Skip to content

Instantly share code, notes, and snippets.

@vivekascoder
Created July 8, 2020 17:30
Show Gist options
  • Select an option

  • Save vivekascoder/4e6d1170747a98f70343ad70f8582905 to your computer and use it in GitHub Desktop.

Select an option

Save vivekascoder/4e6d1170747a98f70343ad70f8582905 to your computer and use it in GitHub Desktop.
import ReactDOM from 'react-dom';
import React from 'react';
import Gist from 'react-gist';
import './style.css';
const root = document.getElementById('root');
class GistApp extends React.Component {
render() {
return (
<div className="Gist-App-Div">
<h1>Hello Gist From Github</h1>
<Gist className="Gist" id="909240f21ce4832b48aa8fada93aca5c" file="email_creator.py"/>
</div>
)
}
}
ReactDOM.render(<GistApp />, root);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment