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

Code Example 1

git clone https://github.com/PDFTron/webviewer-react-sample.git
cd webviewer-react-sample
npm install

Learn ReactJs, React Native from akashmittal.com