I am trying to use PaperJs in one of my React components. I'm not sure where to use the paper.view.onFrame method in my component
https://github.com/react-paper/react-paper-bindings
There's a package for you to see how paperjs and reactjs being implemented together.
You can use the package as is (last update seems a bit fine on december 2018), or you can see how the author implementing paperjs into a reactjs project.