docs: update pages configuration example to typescript (#6596)
* Update examples to TS
* docs: update files names to corresponding TSX
having jsx syntax, file needs to be jsx/tsx.
* Apply suggestions from code review
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com>