React bindings for MathLive
npm install @edpi/react-math-view> React bindings for MathLive
 
``bash`
npm install --save react-math-view
yarn add react-math-view
`tsx
import { useRef } from 'react';
import MathView, { MathViewRef } from 'react-math-view';
const ref = useRef
const toggleKeyboard = useCallback(() => ref.current?.executeCommand('toggleVirtualKeyboard'), [ref]);
const getSpokenValue = useCallback(() => ref.current?.getValue('spoken'), [ref]);
ref={ref}
/>
`
before running it
`bash
npm i && npm i --only=dev / or / yarn --production=false
`$3
`bash
// start dev servers for /src and /example
npm run dev// publish to npm
npm run publish
// deploy gh-pages (example app)
npm run deploy
``MIT © ShaMan123