Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mortuie/react-katex-component

React Component for rendering Math with Katex.
https://github.com/mortuie/react-katex-component

katex latex react tex

Last synced: 22 days ago
JSON representation

React Component for rendering Math with Katex.

Awesome Lists containing this project

README

        

# React-Katex-Component
This is a react component which can be used to render maths equations on the screen. It uses Khan Academy's `Katex` to generate the html.

## Installing
You can install it with npm:
```
npm install react-katex-component
```

When using within a react project you need to add the `Katex CSS file` within your index.html file. The required cdn tag is as follows:
```html

```

## Usage
Once the package has been installed it can be used as follows:

```jsx
import React, {Component} from 'react';
import KatexComponent from 'react-katex-component';

export default class Test extends Component {

render() {
return ;
}
}