TheoremJS is a mathematical framework that is packed up with tons of useful mathematical functions. It is composed of functions in most mathematical fields such as algebra, number theory, statistics, etc... It was designed to fit your need, whatever you are trying to do.
A free open source resource with many React / JavaScript / JSX examples. All examples work directly from a browser using CDN links and no build process is required.