Page templates are special views, which are selectable from the 'Page Template' dropdown in the page editor.
To create a page template, create a new view in the 'views/templates/' folder. It should export a view created with the defineView function, and also needs some special comments at the top of the file to identify it as a page template. Just like regular WordPress PHP templates.
/**
* Template Name: Special
*/
import { defineView } from "eddev/views"
export default defineView("templates/special", () => {
return (
<div>
<h1>Special Template!</h1>
</div>
)
})