Updated `onChange` to `transact`

see https://github.com/dustingetz/react-cursor/issues/9