React component wrapper for Mathquill
npm install react-mathquill-extenstion
> Link to an example
``javascript
import React from 'react'
import { addStyles, EditableMathField } from 'react-mathquill'
// inserts the required css to the
block.export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {
latex: '\\frac{1}{\\sqrt{2}}\\cdot 2',
}
}
render() {
return (
onChange={(mathField) => {
// called everytime the input changes
this.setState({ latex: mathField.latex() })
}}
/>
)
}
}
`
`javascript
import React from 'react'
import { addStyles, StaticMathField } from 'react-mathquill'
// inserts the required css to the
block.export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {
latex: '\\frac{1}{\\sqrt{2}}\\cdot 2',
}
}
render() {
return
}
}
`
This function, when called, will append a