Add regex validation to make sure files in src/pages export React components. Throw error otherwise. Programmatically enforce language in the docs: #3011
A cheap way of doing this is to make sure files contain at least two statements:
(1) an uppercase React
(2) export default or module.exports