fix(pages): fix error in factory example

The `createWith` helper, when called with a block, should return an
array and not any value.

Closes #11