better-react-mathjax
Version:
Up-to-date component for using MathJax in latest React (using functional components and hooks API). Focuses on being versatile and making the use of MathJax in React a pleasant experience without flashes of non-typeset content, both with respect to initia
12 lines (11 loc) • 407 B
TypeScript
import { ComponentPropsWithoutRef, FC } from "react";
import { MathJaxOverrideableProps } from "../MathJaxContext";
export interface MathJaxProps extends MathJaxOverrideableProps {
inline?: boolean;
onInitTypeset?: () => void;
onTypeset?: () => void;
text?: string;
dynamic?: boolean;
}
declare const MathJax: FC<MathJaxProps & ComponentPropsWithoutRef<"span">>;
export default MathJax;