1.3.2 • Published 3 years ago

react-math-view v1.3.2

Weekly downloads
29
License
MIT
Repository
github
Last release
3 years ago

react-math-view

React bindings for MathLive

NPM JavaScript Style Guide

Live Example

Install

npm install --save react-math-view
yarn add react-math-view

Usage

import { useRef } from 'react';
import MathView, { MathViewRef } from 'react-math-view';

const ref = useRef<MathViewRef>(null);
const toggleKeyboard = useCallback(() => ref.current?.executeCommand('toggleVirtualKeyboard'), [ref]);
const getSpokenValue = useCallback(() => ref.current?.getValue('spoken'), [ref]);
<MathView
 value="x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}"
 ref={ref}
  />

Looking for React-Native?

Check out react-native-math-view.

Dev

Before you begin make sure to install dependecies

Don't forget to do the same in /example before running it

npm i && npm i --only=dev /* or */ yarn --production=false

Available commands

// start dev servers for /src and /example
npm run dev

// publish to npm
npm run publish

// deploy gh-pages (example app)
npm run deploy

License

MIT © ShaMan123

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago