Made with create-react-library
It dynamically loads the MathJax when the Latex component is called which eliminates the overhead of calling the cdn of MathJax when not required.
npm install --save react-latex-parser
import React, { Component } from 'react'
import Latex from 'react-latex'
//to render the latex text
class Example extends Component {
render() {
return <MyComponent latexExpression={"This is to render the latex"} />
}
}
MIT © bhusal-rj