Adding createElement

This is based off the work of @jnetterf in
https://github.com/Asana/typed-react/pull/24/files#diff-4