Fixed some type errors from bad `purescript-react`.
Might need to rethink this.