Check out example codes for "embed github html". It will help you in understanding the concepts better.

Code Example 1

<!-- Use "https://emgithub.com/" and copy the script tag-->

Code Example 2

<script src="https://gist.github.com/username/gist-id.js?file=your-file-name.js"></script>

Learn ReactJs, React Native from akashmittal.com