ReactApp.createPage() accepts function as a spec

Function will be used as a render function and takes its props as an argument.
Fixes in react-app/app module