上传者: 42127369
|
上传时间: 2021-10-09 11:42:46
|
文件大小: 100KB
|
文件类型: -
用于React组件包装器
例子
位于src/examples/
在此使用以下示例
可编辑的数学字段
import React , { useState } from 'react'
import { addStyles , EditableMathField } from 'react-mathquill'
// inserts the required css to the <head> block.
// you can skip this, if you want to do that by yourself.
addStyles ( )
const EditableMathExample = ( ) => {
const [ latex , setLatex ] = useState ( '\\frac{1}{\\sqrt{2}}\\cdot 2' )
return (
< EditableMathField
latex = { latex }
onChange = { ( mathField ) =