that is already covered in documentation on github: https://github.com/Stanko/react-plx
Additionally I wrote a blog post as well: https://stanko.github.io/plx-react-parallax-component/
(Link to blog post is also included in the documentation.)