Skip to content

Repository files navigation

react-mathjax

NPM version

React component to display math formulas.

Installation

$ npm i react-mathjax --save

Usage

constMathJax=require('react-mathjax')consttex=`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.Nodeinlineformula={'a = b'}/>
And a block one:
<MathJax.Nodeformula={tex}/></div></MathJax.Provider>);}

About

React component to display math formulas

Topics

Resources

Stars

97 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages