WebViewer - React sample
This repo is specifically designed for any users interested in integrating WebViewer into React project. This project was generated with Create React App. See Create React App documentation for more information.
Before you begin, make sure your development environment includes Node.js.
git clone https://github.com/PDFTron/webviewer-react-sample.git cd webviewer-react-sample npm install
npm run build to build the project. The build artifacts will be stored in the
build/ directory. See the section about deployment for more information.
To test the build directory locally you can use serve or http-server. In case of serve, by default it strips the .html extension stripped from paths. We added serve.json configuration to disable cleanUrls option.
See API documentation.