Skip to content

bhusal-rj/react-latex

Repository files navigation

react-latex

Made with create-react-library

NPM JavaScript Style Guide

React Latex Parser is the react library for parsing the latex expression in react.

It dynamically loads the MathJax when the Latex component is called which eliminates the overhead of calling the cdn of MathJax when not required.

Install

npm install --save react-latex-parser

Usage

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"} />
  }
}

License

MIT © bhusal-rj

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published