react-mathjax-kangaroo

0.1.2 • Public • Published

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.Context>
            <div>
                This is an inline math formula: <MathJax.Node inline>{'a = b'}</MathJax.Node>
                And a block one:
 
                <MathJax.Node>{tex}</MathJax.Node>
            </div>
        </MathJax.Context>
    );
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    2

Package Sidebar

Install

npm i react-mathjax-kangaroo

Weekly Downloads

2

Version

0.1.2

License

Apache-2.0

Last publish

Collaborators

  • 21alexander21