old FarsiType.js for react with onChange support originally created by: http://www.farsitype.ir
retuned and optimized plus fixed some issues for react by Navid Dezashibi (Knavels)
setup guide:
import { convert_to_farsi } from "farsi";
<Input type="text" name="fname" id="fname" onKeyPress={convert_to_farsi} onChange={(v) => console.log(v.target.value)} />
that's it ;)