This PR fixes it, so that a user can define a custom framework entry for both
the `client` and `server` (in either `src/client.tsx` or `src/server.tsx`).
This PR also removes the unneeded `src/server.ts` files present as part of the
`devinxi` migration.
Additionally, the React client entry has been change to wrap `hydrateRoot`
with `startTransition`. This change useful, since after the SSR-rendered
markup is sent to the client, `startTransition` lets React know to defer the
hydration in favor of user events.
fixes#4138
Using the below setting, the examples and e2e projects opt into the
future behavior of using `./src` as the app directory, rather than
'./app':
```ts
tsr: {
appDirectory: 'src',
},
```
The `./src` directory is typically used for pure-TS Router projects, as
well as CRA. Thus this reduces the churn for a TS Router SPA to opt into
server features with TS Start.