React Mathjax Save

React component to display math formulas

Project README

react-mathjax

NPM version

React component to display math formulas.

Installation

$ npm i react-mathjax --save

Usage

const MathJax = require('react-mathjax')
const tex = `f(x) = \\int_{-\\infty}^\\infty
    \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}
    \\,d\\xi`

module.exports = () => {
    return (
        <MathJax.Provider>
            <div>
                This is an inline math formula: <MathJax.Node inline formula={'a = b'} />
                And a block one:

                <MathJax.Node formula={tex} />
            </div>
        </MathJax.Provider>
    );
}
Open Source Agenda is not affiliated with "React Mathjax" Project. README Source: SamyPesse/react-mathjax
Stars
92
Open Issues
37
Last Commit
1 year ago
License

Open Source Agenda Badge

Open Source Agenda Rating