React-component subgenerator works, but does not template