{"repo":"fast-reflexes/better-react-mathjax","free":true,"listed":false,"github":"https://github.com/fast-reflexes/better-react-mathjax","clone":"git clone https://github.com/fast-reflexes/better-react-mathjax.git","description":null,"language":"TypeScript","stars":187,"topics":["react","mathjax"],"license":"MIT","category":"ui-components","readme_excerpt":"A simple React component for MathJax # Up-to-date component for using MathJax in latest React (using functional components and hooks API). Focuses on being versatile and making the use of MathJax in React a pleasant experience without flashes of non-typeset content, both with respect to initial rendering as well as dynamic updates. Simple to use but with many configuration options. Features Supports both MathJax version 2, 3 and 4. Supports local copy of MathJax or copy supplied via CDN. Small imprint on production bundle with dependencies only for types (image shows a size of 6.18 KB and 2.3 KB gzipped in a NextJS project analyzed with their bundle analyzer). Built in a modular fashion on top of MathJax with direct access to MathJax via the MathJax configuration. Use MathJax functionality either through the MathJax component or by yourself through the MathJaxBaseContext . Either put your math into the DOM with React first and let MathJax typeset afterwards (v. 2, 3 and 4), or typeset with MathJax first and add it to the DOM afterwards (v. 3 and 4 only). Hide your components before they are typeset to avoid flashes of non-typeset content and make the use of MathJax a pleasant experience. Complete - no other dependencies related to MathJax are needed to enable the use of MathJax in your React app. Basic workflow Installation Add this library manually as a dependency to package.json ... ... and then run npm install or let npm or yarn do it for you, depending on which package ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/fast-reflexes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fast-reflexes/better-react-mathjax/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}