wko27 / react-mathjax

MathJax as React component
MIT License
168 stars 71 forks source link

Can you show us how you made the render as you type example? #20

Closed cuppajoeman closed 3 years ago

cuppajoeman commented 3 years ago

Thanks

cuppajoeman commented 3 years ago

Nvm, I figured out how you can do this. For example if you are using react and you have an input field you can have a function that updates the state to have the current value of the textfield, then you can simply pass text = { this.props.text} to the MathJax tag