[changed] use `React.createElement` for dynamically instantiating route handlers