react-mathjax
uses version 2 and I am restricted to use version 3 + Reactjs
for my project. Is there any library that can help me or must I do a whole rewrite?
You can try a package that I wrote: better-react-mathjax. It is highly configurable and allows using both version 2 and 3.