UNPKG

react-mathjax

Version:

React component to render math using MathJax

15 lines (11 loc) 299 B
/* @flow */ import * as React from 'react'; export type MathJaxContextValue = { MathJax: ?Object, registerNode: () => void }; const MathJaxContext: React.Context<MathJaxContextValue> = React.createContext({ MathJax: null, registerNode: () => {} }); export default MathJaxContext;